I'm a beginner on python and I want to know how can I sum digits for a random number between 1-10000 Print the number is easy:
from random import randint
x = randint(1, 10001)
print x
but how can I sum the number of digit of the outcome, Thanks,