Again. Trying to teach myself how to use the return function. This is me trying to get a user to make a choice between 1-5 and then returning their choice. I don’t know now returns work but if someone can help me tackle this I’d greatly appreciate it.
print("PRACTICE.") def get_choice(): choice = -1 while choice < 1 or choice > 5: choice = int(input("Please make a choice (1-5): ")) return choice