print("Please choose your option from the list below: ")
print("1:\tLearn Python")
print("2:\tLearnJava")
print("3:\tGo swimming")
print("4:\tHave dinner")
print("5:\tGo to bed")
print("0:\tExit")

while True:
    choice = input()

    if choice == "0":
        break
    elif choice in "12345":
        print("You chose {}".format(choice))
    else:
        print("Please choose your option from the list below: ")
        print("1:\tLearn Python")
        print("2:\tLearnJava")
        print("3:\tGo swimming")
        print("4:\tHave dinner")
        print("5:\tGo to bed")
        print("0:\tExit")

# extra challenge solution:

# choice = "-"
# while True:
#     if choice == "0":
#         break
#     elif choice in "12345":
#         print("You chose {}".format(choice))
#     else:
#         print("Please choose your option from the list below: ")
#         print("1:\tLearn Python")
#         print("2:\tLearnJava")
#         print("3:\tGo swimming")
#         print("4:\tHave dinner")
#         print("5:\tGo to bed")
#         print("0:\tExit")
    
#     choice = input()


print("Please choose your option from the list below: ")
print("1:\tLearn Python")
print("2:\tLearnJava")
print("3:\tGo swimming")
print("4:\tHave dinner")
print("5:\tGo to bed")
print("0:\tExit")

while True:
    choice = input()

    if choice == "0":
        break
    elif choice in "12345":
        print("You chose {}".format(choice))
    else:
        print("Please choose your option from the list below: ")
        print("1:\tLearn Python")
        print("2:\tLearnJava")
        print("3:\tGo swimming")
        print("4:\tHave dinner")
        print("5:\tGo to bed")
        print("0:\tExit")

# extra challenge solution:

# choice = "-"
# while True:
#     if choice == "0":
#         break
#     elif choice in "12345":
#         print("You chose {}".format(choice))
#     else:
#         print("Please choose your option from the list below: ")
#         print("1:\tLearn Python")
#         print("2:\tLearnJava")
#         print("3:\tGo swimming")
#         print("4:\tHave dinner")
#         print("5:\tGo to bed")
#         print("0:\tExit")
    
#     choice = input()


# extra challenge solution: # choice = "-" # while True: #     if choice == "0": #         break #     elif choice in "12345": #         print("You chose {}".format(choice)) #     else: #         print("Please choose your option from the list below: ") #         print("1:\tLearn Python") #         print("2:\tLearnJava") #         print("3:\tGo swimming") #         print("4:\tHave dinner") #         print("5:\tGo to bed") #         print("0:\tExit") #     choice = input()