[ad_1]
Call stron the number and str.join the result of that:
i = 4316
print("+".join(str(i)))
4+3+1+6
[ad_2]
solved Python – How to show addition of integers digits
[ad_1]
Call stron the number and str.join the result of that:
i = 4316
print("+".join(str(i)))
4+3+1+6
[ad_2]
solved Python – How to show addition of integers digits