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

8-5. Cities:

From

Cover of Python Crash Course

Note

def describe_city(city, country = 'China'):
"""func to display city info"""
print(city.title() + "is in " + country.title() + ".")

describe_city('beijing')
describe_city(country = 'britain', city = 'york')
describe_city('boston', 'america')