Completed Exercise 8-6 City Names

This commit is contained in:
cheeks 2025-02-12 10:31:16 -05:00
parent addb79e561
commit 51e6ca4dac

View File

@ -0,0 +1,11 @@
# Exercise 8-6 City Names
# Learning Objective: Create function that returns a value
def city_country(city_name, country):
return f"{city_name.title()}, {country.title()}"
#Call 3 Times
print(city_country('Paris', 'France'))
print(city_country('Hamburg', 'Germany'))
print(city_country('Portland', 'United States'))