Completed 11-1 City, Country

This commit is contained in:
cheeks 2025-03-09 23:36:11 +00:00
parent be086de29b
commit 1befd9566a
3 changed files with 15 additions and 0 deletions

1
Chapter_11/README.md Normal file
View File

@ -0,0 +1 @@
Forgone the naming convention due to conflict with module naming and numbers in the file name.

View File

@ -0,0 +1,6 @@
# 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

View File

@ -0,0 +1,8 @@
from city_functions import create_city_string
def test_city_country():
output_string = create_city_string("talahasse", "united states")
print(f"{output_string}")
assert output_string == "Talahasse, United States"
test_city_country()