I'm trying some functions and when running it it gives me nothing
def formatted_city(city_name, country_name):
formatted_name = city_name + "' " + country_name
return formatted_name.title()
formatted_city('cairo', 'egypt')
expected : "Cairo' Egypt"
actual result: nothing happens
and when testing it it also gives me nothing
You need to print
it:
print(formatted_city('cairo', 'egypt'))
Output:
Cairo' Egypt
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments