Lesson Notes

· nulo's blog

# Andy Lesson 1

pyscaffold and dev bootstrap

https://github.com/ryc/dboot
https://github.com/ryc/booking

# Andy Lesson 2

nested.py

 1people = {
 2    'andy': {'age': 42, 'fav_color': 'green'},
 3    'fred': {'age': 22, 'fav_color': 'red'},
 4}
 5
 6people['andy']['age']
 7
 8booking = {
 9    'customer': {'prompt': "enter customer number", 'value': None},
10    'weight': {'prompt': "enter shipment weight", 'value': None},
11    'volume': {'prompt': "enter shipment volume", 'value': None},
12}
13
14for field_name, properties in booking.items():
15    properties['value'] = input(properties['prompt'])
16    
17print(booking)