+ 1
Friends I am a toddler in programming so please help
why is my code getting a answer that doesn't pluses the terms but combines them . look the code given https://code.sololearn.com/cWJ3e5G31gMz/?ref=app
2 Antworten
+ 7
You need to convert the input number to integers, they are strings when input so will be concatenated otherwise.
x=int(input('you entered a number that is '))
print(x)
y=int(input('you entered another number that is '))
print(y)
print('the sum of numbers is', x+y)
0
thanks