import randomx = 1L = []sum = 0.0;while x < 7: L.append(random.randint(1,100)) x += 1for n in L: sum += nprint Lprint sumprint sum/6