from random import randint lista = [] for i in range(0, 5): lista.append(randint(0,9)) print('lista: ', lista) print('Media: ', sum(lista) / 5)