Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
test
functional python - from hackernoon.com, lean functional python in 10 min
Parity in Python
runologist
Gardener
ab.py
gameboy
Dictionary - convert to lowercase
problem rstring
ab
Please log in to post a comment.