Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
sum_of_digits.py
#python 3.5.2 #sum of digits def sum_of_digits(num): sum=0 while num!=0: r=num%10 sum=sum+r num=num//10 return sum print(sum_of_digits(1234087))
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Faiha Lesson 3
Ns
DICCIONARIO EN PYTHON 3
Regular falsi
PyDeque
rectangle perimiter
main_game
Name
Insert a sequence of same numbers, unpacking
p1
Please log in to post a comment.