coin1 = raw_input("Coin1: ")
while coin1 != (10, 20, 50, 100):
print "That is not a correct coin value"
coin1 = raw_input("Coin1: ")
This bit of code should ask the user to input a value for the variable "coin1", check if the value is equal to 10, 20, 50, or 100, and if it is not equal to any of these numbers, it should tell you that it is an "incorrect coin value" and ask you to input another value for the variable "coin1".
It asks me to input a value, but no matter what I type, it doesn't accept the value, it just tells me that it is an "incorrect coin value".
I've been trying to make it work for hours, I have literally no idea what's wrong, and I'm a beginner to Python. Can any of you guys help out?