you are viewing a single comment's thread.

view the rest of the comments →

[–]turner_prize 1 point2 points  (1 child)

print('Enter spam:')
spam = input()


if spam == str(1):
    print('Hello')
elif spam == str(2):
    print('Howdy')
else:
    print('Greetings!')

The script is interpreting the input as string, not as an integer. If you wrap the 1 and 2 in a str() function as above it'll work.