I come from a java background, new to python. Simple recursive sum function is not working

后端 未结 0 1809
无人共我
无人共我 2020-12-30 12:06

the simple recursive sum function.

It is supposed to add all digits of a number. For example sum(123) = 1 + 2 + 3 = 7

It works by tail recursion. I take the fi

相关标签:
回答
  • 消灭零回复
提交回复
热议问题