from time import sleep print("Welcome to my first game") char_name = "" def choosingname(name): name = input("What is your charactar's name?: ") print(name) YorN() def YorN(): correctornot = input("Enter Y for yes if name is correct, enter N for no if name is not correct: ") if correctornot == "Y": print("You have your character's name!") elif correctornot == "N": print("Let's input the name again") choosingname() else: print("Invalid, neither Y or N was entered.") YorN() choosingname(char_name) print("CityBuilder: The Game. Is now running.") sleep(1) print("Hello %s, what's your city going to be called?" % char_name)(Out of the code now: The code on the last line never prints the user's name why is that?)
Please help
