+ 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

31st Aug 2017, 9:55 AM
vansh
vansh - avatar
2 Respostas
+ 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)
31st Aug 2017, 10:09 AM
ChaoticDawg
ChaoticDawg - avatar
0
thanks
31st Aug 2017, 10:12 AM
vansh
vansh - avatar