I am working on an exercise that I can't seem to figure out. I'm working in Python 3.5. I am trying to collect 2 inputs from a user, add them together and then print out a response based on the sum of the 2 inputs. I got stuck a few times and found the solutions however now I am really confused. Can anyone please guide me toward what may help fix my code?
I get the following error message:
Traceback (most recent call last):
File ..... line 7, in
if Sum > "100":
TypeError: unorderable types: int() > str()
print("I want you to think of 2 numbers. Got em? Okay") print("Please Enter Your First Number") FirstNumber = input() print("Perfect. Now please enter the second number.") SecondNumber = input() Sum = int(FirstNumber) + int(SecondNumber) if Sum > "100": print("They add up to a big number") if Sum <= "100": print(Sum)
Thank you for any and all help!!