diff --git a/Chapter_08/8-05.cities.py b/Chapter_08/8-05.cities.py new file mode 100644 index 0000000..5872914 --- /dev/null +++ b/Chapter_08/8-05.cities.py @@ -0,0 +1,9 @@ +# 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')