There's a list with numbers. The while queue should run as long till the user inputs a number from the list.
new_list = [1, 2, 3]
while not True:
    user_input = input()
    if user_input in new_list:
        break
    else:
        print("false")
The queue currently doesn't stop if I enter for example 2.
 
     
     
    