Question: cities = { 'Toronto': 5 2 5 9 , 'Rome': 9 8 2 , 'London': 5 5 0 , 'Paris': 5 8 4 , 'Nairobi':

cities ={
'Toronto': 5259,
'Rome': 982,
'London': 550,
'Paris': 584,
'Nairobi': 3435,
'Chicago': 309,
}
best =''
distance =0
for city in cities:
if cities[city]> distance:
best = city
distance = cities[city]
print(best, distance)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!