I can't work out why adding these two ints just gives zero
Juice99 (6)

This has been fixed, I originally had: x = int();y = int()
but I needed: x = int(x); y = int(y)


I am new to programming and am testing out functions so I made this tiny program that is supposed to add two user input numbers but it just gives out zero,

I know that the numbers are going into the function, They're just not being added and I have no idea why.

Any clues would be greatly appreciated.

You are viewing a single comment. View All
Answered by Vandesm14 (2434) [earned 5 cycles]
View Answer
Juice99 (6)

@Vandesm14 Thank you for the answer.

This doesn't seem to display anything other than the two input numbers, and I'm still not sure why what I had doesn't work.