Not being allowed to assign 1 to "try" is actually a fluke error you stumbled upon. "Try" is a Python keyword related to throwing exceptions. You are not allowed to use Python keywords as variable names.
You have a syntax error in your first piece of code most likely because of something that proceeds that line. I would have to see the rest of the code.
What I said about the while loop, was not the same thing you said. You said if there's a condition within the while loop that matches the end condition of the loop, the latter condition can never be satisfied. But the crucial piece of information is that the while loop test is only performed at the very end/top of the loop's iteration. Not intermediately.
More specifically...
i = 0
while i <= 10:
i += 1
print i
Is equivilent to:
i = 0
while 1:
if not i <= 10: break
i += 1
print i
But either way, this is irrelevant. I noticed you're on the right path with how you tried to move
guess == answer outside of the while loop.
