from random import randint
digit = randint(100, 999)
print(digit)
print(sum([int(i) for i in str(digit)]))
from random import randint
digit = randint(100, 999)
print(digit)
print(sum([int(i) for i in str(digit)]))