Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Q5
#python 3.5.2 Number = int(input("Please Enter any Number: ")) Sum = 0 while(Number > 0): Reminder = Number % 10 Sum = Sum + Reminder Number = Number //10 print("\n Sum of the digits of Given Number = %d" %Sum)
run
|
edit
|
history
|
help
0
Short python input
Page 353 ex 42
self
Current date/time
mean
PyStack
function and doc string
short hand if else
recreation of https://js.do/samples/labyrinth in python. Works in the same way.
ip2cidr