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
runologist
project euler 16
trial
Defining
Problem: rstring
Temperature Converter
information of operating system on which your code is run
Python examples - SIMPLE
Python2, list comprehension, join, split, zip
PyClassMethod