Adding source code files for Chapter 6

This commit is contained in:
muassif
2021-03-13 19:25:45 +04:00
committed by GitHub
parent e662762d09
commit 9589675a50
45 changed files with 625 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
# dictionary3.py
dict1 = {100:{'name':'John', 'age':24},
101:{'name':'Mike', 'age':22},
102:{'name':'Jim', 'age':21} }
print(dict1.get(100))
print(dict1.get(100).get('name'))
print(dict1[101])
print(dict1[101]['age'])