Added code for lecture 2026-11-10

This commit is contained in:
Edward Bigos 2026-11-10 12:28:09 -05:00
commit 07b9e54bf0
52 changed files with 1248 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

View file

@ -0,0 +1,21 @@
from pprint import pprint
addressList = ["John Smith", "1 Main St", "Anycity", "Ma", "01102"]
print(addressList)
print(sorted(addressList))
addressDictionary = {'Name':"John Smith", 'Address':"1 Main St", 'City': "Anycity",
'State':"Ma", 'ZipCode': "01102"}
print(addressDictionary)
print(addressDictionary.keys())
print(addressDictionary.values())
for Item in addressDictionary.keys():
print(f"{Item:10s} {addressDictionary[Item]}")
pprint(addressDictionary)