Chapter folders renamed

This commit is contained in:
Karan Solanki
2021-08-13 11:44:51 +05:30
parent d9f3f5b159
commit 1eb709f83a
211 changed files with 0 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'])