Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
single_digit
#python 2.7.12 def recursion(numb): if numb < 10: return else: j = str(numb) b = '' k = 0 for n in range(len(j)): b = j[n] k = k + int(b) print k recursion(k) n = raw_input("Enter any number: ") print("\n") recursion(n)
run
|
edit
|
history
|
help
0
Glimpse Of Numpy Python
PyClaMInher
PyClass2
Data structures
Cofe
PySet
First programm
Dictionary - convert to lowercase
Dictionary comprehension - convert to lowercase
single digit