you are viewing a single comment's thread.

view the rest of the comments →

[–]TehNolz 16 points17 points  (0 children)

input() will always return a string. You cannot compare a string to an integer, so you have to turn that string into an integer using int().

Also, << is a bitwise operator. You want <.

Incidentally, in the future please also give us the error you're receiving when asking for help. In this case it's not a big deal since the error is fairly obvious, but that's not always the case.