Hello! I am new to Python programming. I wrote a program that reads all the numbers and calculates the average of those numbers which are in a file. I want feedback, and criticism on how to make my program better.
In general it is best to use the built-in library to do these type of calculations. In this case the statistics.mean function which you can read about here: https://docs.python.org/3/library/statistics.html