python average
def Average(nums):
return sum(nums) / len(nums)
lis = []
for x in range(100000):
nums =int(input("enter numbers: "))
command = input()
lis.append(nums)
if command == "e":
break
output = Average(lis)
print("the average is ",output)