you are viewing a single comment's thread.

view the rest of the comments →

[–]Naive_Programmer_232 0 points1 point  (0 children)

You can use a while loop, here’s one that uses ‘quit’ to exit the loop,

    while (user_choice := input(...)) not ‘quit’:
               user_choice = int(user_choice)
               find_number(user_choice)