[Tutor] command error
guess = int(raw_input("Take a guess: ")) > tries -= 1. This will loop untill guess == the_number with no other way out. Meaning unless the number is guessed it will end up in an infinite loop.
guess = int(raw_input("Take a guess: ")) > tries -= 1. This will loop untill guess == the_number with no other way out. Meaning unless the number is guessed it will end up in an infinite loop.
When executing the program, in case the user input is "for", "not", >> "True", "while" Python interprets that as a command and changes the >> input's color to the corresponding command. ... > > Are you running the program inside idle?
When executing the program, in case the user input is "for", "not", > "True", "while" Python interprets that as a command and changes the > input's color to the corresponding command. Python does nothing of the sort. Python doesn't know anything about colours, and doesn't colour text.
I assumed it was actually executing the input. > I suspect the colorizing happens in most IDEs not just IDLE? I don't know, I think it's a side effect of idle using the same window for interaction with command line programs and as the interactive interpreter.