-3
def city_country(city, country):
    message = print(f"{city} is in the {country}! ")
    return message

city_n = input("What is the city called? ")
country_n = input("Where is it located? ")

final_message = city_country(city_n , country_n)
print(final_message)

It gives me None when it's not supposed to. Am I doing it wrong?

eXBowZ
  • 1
  • 1
  • 2

1 Answers1

0

You can not define the variable as a print function, as print does not return anything, it just prints something

Gevezo
  • 364
  • 3
  • 17