A variable is a named computer memory space that stores a value. The action of putting a value into a variable is called assignment. We use visualization to help us understand how Python executes an assignment statement. We also continue our discussion from last lecture on types, including conversion between types.
Or read: 2.1 - 2.3, 2.5, 2.6 (html version)
You will need pencil and paper (or stylus and tablet) during lecture for drawing diagrams. We recommend that you print out the slides so that you can write and draw on them. Or have the pdf downloaded so that you can annotate on the pdf. Of course, you can take notes in a notebook, too! The key is to take notes for yourself for easy reference later.
Answers to Lecture Exercise 1 (slide 33) and Exercise 2 (slide 37): Do these super short exercises yourself first! See lecture slides file above. After drawing the diagrams yourself, you can check your answers here.