This is the code and notes from my live Twitch programming and drawing classes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
450 B

### @export "first"
things = ['a', 'b', 'c', 'd']
print(things[1])
things[1] = 'z'
print(things[1])
things
### @export "second"
stuff = {'name': 'Zed', 'age': 39, 'height': 6 * 12 + 2}
print(stuff['name'])
print(stuff['age'])
print(stuff['height'])
stuff['city'] = "SF"
print(stuff['city'])
### @export "third"
stuff[1] = "Wow"
stuff[2] = "Neato"
print(stuff[1])
print(stuff[2])
### @export "fourth"
stuff.pop('city')
stuff.pop(1)
stuff.pop(2)
stuff