O'Reilly logo
  • Longxiang Lyu thinks this is interesting:

8-6. City Names:

From

Cover of Python Crash Course

Note

def city_country(city, country):
return (city + ", " + country).title()

print(city_country('santiage', 'chile'))
print(city_country('beijing', 'china'))
print(city_country('tokyo', 'japan'))