Как я могу остановить цикл от того, чтобы быть непрерывным циклом?
userChoice2 = input("What is the coin type you want to count?: ") while userChoice2 not in ["1p", "2p", "5p", "10p", "20p", "50p", "£1", "£2"]: print("Wrong input") print("You have to pick one from" "1p", "2p", "5p", "10p", "20p", "50p", "£1", "£2") If an invalid response is entered the program continuously prints the final two print commands. What I have tried: I have tried using a function and making the while loop true and false.
0x01AA
input
нужно быть внутри while loop
Coding1014
Где в цикле while?