Lecture 1 | Next Lecture |
Lecture 1, Mon 10/02
Orientation to the course
Resources from lecture
Learning Something New
-
Basketball: drills vs. playing the game
-
Swimming, Painting, Guitar
-
Fixed vs. Growth Mindset
Python REPL (Read Eval Print Loop)
Also called the Python Shell Prompt
Python 3.4.3 (default, Aug 9 2016, 15:36:17)
[GCC 5.3.1 20160406 (Red Hat 5.3.1-6)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 2 + 3
5
>>> 2 + 7 *4
30
>>> 2 ** 3
8
>>> 2 ** 3 ** 2
512
>>> 2 * 3 * 4
24
>>> (2 * 3) * 4
24
>>> 2 * (3 * 4)
24
>>> (2 ** 3) ** 2
64
>>> 2 ** (3 ** 2)
512
>>>
Note that **
is right associative, not left associative.
The textbook and the homework
- Look over H00, H01, H02, and show the calendar.
IDLE and Python
The syllabus is here: https://ucsb-cs8-f17.github.io/info/syllabus/