Def city_country () :
Guide={' Santiago ':' Chile ', 'according to' : 'China' and 'Beijing' : 'China'}
City_name=input (" City name: ")
If city_name in guide. The keys () :
City_and_country=city_name + "+ STR (guide. Get (' city_name))
The else:
='unkown city_and_country city'
Return city_and_country
Print (city_country ())
The hope can help solve the problem of the following output thank
City name: according to
According to None
This is my output
CodePudding user response:
Guide. The get (' city_name ')
Look at your quotes
CodePudding user response: