Started Rectangle Project
This commit is contained in:
commit
26e1253c0d
39 changed files with 544 additions and 0 deletions
17
homework06/DictionariesAndTry/dictionary1.py
Normal file
17
homework06/DictionariesAndTry/dictionary1.py
Normal 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'])
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue