Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
single digit
n = raw_input("Enter any num: ") print("\n") def rec(num): if num < 10: return else: strig_num = str(num) f = '' plus = 0 for n in range(len(strig_num)): f = strig_num[n] plus = plus + int(f) print plus rec(plus) rec(n)
run
|
edit
|
history
|
help
0
GayChicken
pi1
runologist
asxsd
ab.py
binary
wordscapes
trial
PyAddBook
Gus Hw Help