Lecture 1 | Next Lecture |
Lecture 1, Thu 09/27
Orientation to the course
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, shown in the calendar.
IDLE and Python
Reviw the syllabus at this link: https://ucsb-cs8-f18.github.io/info/syllabus/