This is always going to be `False`, because `raw_input` always returns a string. You have to cast the string to an integer somewhere.