Write a python Creating a Dictionary and Accessing element using key


Topic: Write a python Creating a Dictionary and Accessing element using key

Solution

Dict = {'Dict1': {1: 'Geeks'}, 
    'Dict2': {'Name': 'For'}} 
print(Dict['Dict1']) 
print(Dict['Dict1'][1]) 
print(Dict['Dict2']['Name']) 



List all Python Programs