10 lines
300 B
Python
10 lines
300 B
Python
# Exercise 8-5 Cities
|
|
# Learning Objective: Write a function that has a default value. Call it three times.
|
|
|
|
def describe_city(city, country='United States'):
|
|
print(f'{city.title()} is in {country.title()}')
|
|
|
|
describe_city('Chicago')
|
|
describe_city('Annapolis')
|
|
describe_city('Paris', 'France')
|