python-crash-course/Chapter_11/city_functions.py
2025-03-09 23:36:11 +00:00

7 lines
218 B
Python

# Exercise 11-01 City, Country
# Learning Objective: Create a unit test for a function and run it.
def create_city_string(city, country):
new_string = city.title() + ", " + country.title()
return new_string