Help please. I have to write a simple function that returns a string. The string (in this example) is a city and a country e.g. London, England
I have done some other exercises where I return a formatted name e.g. Bob Johnson, but I cannot get this one right
Here is my codes so far:
def city_country(city_name, country_name):
"""Return a string value of information about a city and country."""
location = f"{city_name} {country_name}"
return location
location = city_country('Santiago', 'Chile')
print(city_country)
The function is fine, but the line after the return statement needs to be indented less, otherwise Python will think that that line is also part of the function.