I realize this question may be duplicated here and here, I can't seem to understand the basic principle behind where a while loop reads a variable and, when updating said variable, why it no longer refers to the updated variable.
I want to query for a number and, if a hidden number
a=raw_input("Input number: ")
You code should work in this form, but the raw input function returns a string and not a number...
So you need to do this: