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

View file

@ -0,0 +1,17 @@
#!/usr/bin/python
#Tutorialspoint
# https://www.tutorialspoint.com/python/python_dictionary.htm
# Accessing Values in Dictionary
import pprint
person = {'Name': 'Zara', 'Age': 7, 'Class': 'First','Color':'Green','Phone': "413-781-7822",'Email': "bgates@microsoft.com"}
pp = pprint.PrettyPrinter(indent=4)
pp.pprint(person)
print("\n")
print("person['Name']: ", person['Name'])
print ("person['Age']: ", person['Age'])