+ 3
Can anyone explain why given input to equal 6 or 7 it prints 4567
3 Answers
+ 3
It is possibly because the or statements don't include the SUM variable. So basically you're saying "if SUM is equal to "x+x" or ("x+x") is true". What you need to do is:
if SUM == "3+1" or SUM == "2+2"
Do this for them all starting at the 4 sum
+ 5
Of course! Happy coding
+ 4
Thanks for helping!