xxxxxxxxxx
num_list = [] # You can either use num_list = list()
while True:
inp = input('Enter a number or enter done: ')
if inp.lower() == 'done': # Run the statement if 'done'
break
else: # else, append the number to the list
num_list.append(float(inp))
print(num_list) # Print the list
try:
print(sum(num_list)/len(num_list)) # Print the average
except:
print('No numbers given to find average')