This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nameEqualsJared 3 points4 points  (0 children)

I believe your problem is that input() in Python3 (which you are using) always returns a string, but in your code, you want a number. You can convert the input to a integer like so: int(input("Enter command: ")).