Lecture 1 Next Lecture

Lecture 1, Mon 10/02

Orientation to the course

Resources from lecture

Learning Something New

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

IDLE and Python

The syllabus is here: https://ucsb-cs8-f17.github.io/info/syllabus/