In [1]:
import random,math

def sum():
    n = int(input("please enter the number of the integers: "))
    a = random.randint(1,9)
    i = 0
    s = 0
    total = 0
    while i <= n:
        total = s
        total = total + a*(10**i)
        s = s + total
        i += 1
    return s

print(sum())


please enter the number of the integers: 2
992