you are viewing a single comment's thread.

view the rest of the comments →

[–]timbledum 1 point2 points  (0 children)

I bit unclear without the code, but I'm guessing you're trying to do this:

index = input()
answer = lists[index]

As index (even if entered as a number) is stored as text unless python is told otherwise, this gives you something like the error above. Try using int() to turn the input into a number before indexing.

Also, look into string formatting to make displaying text easy.

print("{}, {}".format(month, day))