I am taking a course for Python, and essentially there's this code:
num1 = input("Enter a number: ")
num2 = input("Enter another number: ")
result = num1 + num2
print(result)
which is supposed to take num1
and num2
and add them together, but instead of adding, the program concatenates the result. So for example if num1 = 5
and num2 = 9
, the result would be 59 and not 14.