Question: Python 3 -Asks the user for the name of a file and reads it in. -Asks the user to enter a series of numbers, and
Python 3
-Asks the user for the name of a file and reads it in.
-Asks the user to enter a series of numbers, and when done enters a period .
-The program should write the numbers entered by the user to a file.
-The program should close the file and then open it again for reading. The program should then read all numbers from
the file, using a while loop and find their average and print the average to the screen.
-Repeat the program, but this time using a for loop for reading.
-Make sure to handle the case where the user immediately enters a . Without entering any numbers, when calculating the average
So I can't even get past the first part and I have re-read chapter 6 but everytime I try to open a file from user input I get an error
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
