import random
# Quantidade de números:
n = 5
# Gera uma lista de n números aleatórios entre 1 e 100:
numbers = (random.randint(1, 100) for _ in range(n))
# Calcula a soma dos números:
total = sum(numbers)
# Exibe o resultado
print(total)
aW1wb3J0IHJhbmRvbQoKIyBRdWFudGlkYWRlIGRlIG7Dum1lcm9zOgpuID0gNQoKIyBHZXJhIHVtYSBsaXN0YSBkZSBuIG7Dum1lcm9zIGFsZWF0w7NyaW9zIGVudHJlIDEgZSAxMDA6Cm51bWJlcnMgPSAocmFuZG9tLnJhbmRpbnQoMSwgMTAwKSBmb3IgXyBpbiByYW5nZShuKSkKCiMgQ2FsY3VsYSBhIHNvbWEgZG9zIG7Dum1lcm9zOgp0b3RhbCA9IHN1bShudW1iZXJzKQoKIyBFeGliZSBvIHJlc3VsdGFkbwpwcmludCh0b3RhbCk=