Python
1
Вклад в тег
favorite_places = {
'john' : ['moscow', 'krasnoyarks'],
'peter' : ['sweden', 'mayami'],
'ivan' : ['kaliningrad', 'everest']
}
for name, places in favorite_places.items():
print("\n" + name.title() + "`s favorite places is: ")
for place in places:
print("\t" + place.title())