Sorry , I meant this, like Jason mentioned the input prompt must be
inside the while loop in order for it to wait for the user input :
print("Welcome.")
g = input("Guess the number: ")
guess = int(g)
while guess != 5
print("Guess again.")
g = input("Guess the number: ")
guess = int(g)
print("Correct")
Thanks
Amit
On 4/13/2015 12:21 PM, Michael Havens
wrote:
print("Welcome.")
g = input("Guess the number: ")
guess = int(g)
while guess != 5
print("Guess again.")
guess = int(g)
print("Correct")