subject

Write a program that lets the user enter in a file name (numbers. txt) to read, keeps a running total of how many numbers are in the file, calculates and prints the average of all the numbers in the file. This must use a while loop that ends when end of file is reached. This program should include FileNotFoundError and ValueError exception handling. Sample output: Enter file name: numbers. txt There were 20 numbers in the file. The average is 4.35

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
To increase sales, robert sends out a newsletter to his customers each month, letting them know about new products and ways in which to use them. in order to protect his customers' privacy, he uses this field when addressing his e-mail. attach bcc forward to
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
Which type of file can be used to import data into a spreadsheet?
Answers: 1
question
Computers and Technology, 22.06.2019 22:30
Jason needs to learn a new web tool. he went through his books to understand more about it. now he wants hands-on experience with using that tool. what would him? jason can use websites where workspace is provided to test the results of your code.
Answers: 2
question
Computers and Technology, 23.06.2019 04:00
Another name for addicting games.com
Answers: 1
You know the right answer?
Write a program that lets the user enter in a file name (numbers. txt) to read, keeps a running tota...
Questions
question
Biology, 29.10.2020 18:00
question
Mathematics, 29.10.2020 18:00
question
Mathematics, 29.10.2020 18:00
question
Mathematics, 29.10.2020 18:00
question
English, 29.10.2020 18:00
question
Mathematics, 29.10.2020 18:00
question
Chemistry, 29.10.2020 18:00
Questions on the website: 13722367