USING PYTHON
Open a file my_file.txt for reading.
Read the numbers in the file using a for loop
Determine the average of all the numbers in the file and print it to console, rounded to two decimal
places.
Close the file
Make sure to put your code in main function.
Thank you!

USING PYTHON Open a file my_filetxt for reading Read the.pdf

  • 1.
    USING PYTHON Open afile my_file.txt for reading. Read the numbers in the file using a for loop Determine the average of all the numbers in the file and print it to console, rounded to two decimal places. Close the file Make sure to put your code in main function. Thank you!