number = 7 guess = -1 count = 0 print("Guess the number!") while guess != number: guess = int(input("Is it... ")) count = count + 1 if guess == number: print("Hooray! You guessed it right!") elif guess < number: print("It's bigger...") elif guess > number: print("It's not so big.") if count > 3: print("That must have been complicated.") else: print("Good job!")
http://en.wikibooks.org/wiki/Non-Programmer%27s_Tutorial_for_Python_3/Decisions Why not? I think I know why it isn't working, but I don't know enough yet on how it should work. The If statement isn't getting read. -- https://mail.python.org/mailman/listinfo/python-list