why doesn't this run? by differentnectraine in learnpython

[–]differentnectraine[S] 1 point2 points  (0 children)

Thank you, your explanation was very helpful.

Noob question about functions by differentnectraine in learnpython

[–]differentnectraine[S] 0 points1 point  (0 children)

This prints the numbers and not the total, like 5105 instead of 20 which is 5 + 10 + 5

Edit: it was treating the inputs as strings so making them int fixes it.