> Python help, need computer to check input for me?

Python help, need computer to check input for me?

Posted at: 2014-12-18 
Try this:

wrong_number = 7

i = wrong_number

while (i==wrong_number):

...print "Enter any number except" , wrong_number

...i = int(raw_input())

...if i==wrong_number:

... ... print "Try again."



print "The number you entered was", i

# Note: tabs are represented by "..."

Thanks for the help. I also figured this:

A=input("question")

If a is t:

print "try again"

else:

print " OK, loading for ", a, "."

Here you go:

http://ideone.com/AXRch0

I am creating a program with Python where the user is asked to type an input, but they are told not to put 7. Even thought I tell them not to, the user can still put 7. How do I get the computer to say "try again" if the user types 7?