python -m pip install auto-py-to-exe
auto_py_to_exe
def getAverage(numArray):
total = 0
for num in array:
total += num
return total/len(numArray)
def getArray():
array = []
for x in range(0, input('Введите количество чисел: ')):
array.append(input('Введите число: '))
return array
def main():
array = getArray()
average = getAverage(array)
print(average)
main()
n = input()
try:
n = int(n)
except:
print('Вы ввели не число')