You may store the entered numbers into a list (and then perform the computations) or, alternatively, you may compute their sum 'on the fly' and then compute the average.
In the following code, I show you how to store the numbers into a list
n = int(input())
l = 
for i in range(0,n):