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