How to write a function that returns a simple string value

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)

Thanks in advance

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.

Then, to print the location, use:

print(location)

The indent on localation = is too deep.
Try:

location = city_country('Santiago', 'Chile')
print(location)

Thankyou Matthew, sorry for the delay in replying. I’ll give it a go

Regards
Simon Lock

Thankyou for the help Barry, sorry for the delay in replying. I’ll try this out

Regards
Simon Lock

That’s worked, thankyou

That’s working now, thankyou very much