In: Computer Science
print("1. Change Team: ")
print("2. Choose Position")
print("3. Quit")
imp = input("Choose an option: ")
if imp == 1:
chooseTeam()
elif imp == 2:
choosePosition()
elif imp == 3:
print("Goodbye")
else:
print("Invalid option")
imp2 = input("Choose an option (1-3): ")
This is my current code however I want it to loop back up to the top if an invalid option is input so it can reset the function
PYTHON CODE:
SAMPLE OUTPUT:

FOR ANY HELP JUST DROP A COMMENT