You have already completed these exercises!
Do you want to take them again?
You completed the Python Nested Dictionaries Exercises from W3Schools.com
Share on:
Consider this syntax:a = {'name' : 'John', 'age' : '20'}b = {'name' : 'May', 'age' : '23'}customers = {'c1' : a, 'c2' : b} what will be a correct syntax for printing the name 'May'?
a = {'name' : 'John', 'age' : '20'}b = {'name' : 'May', 'age' : '23'}customers = {'c1' : a, 'c2' : b}
print(customers['c2']['name'])
print(customers.c2.b['name'])
print(customers.c2.name)