Question: Python Challenge 101 2. Consider the file named numbers.txt that contains a series of integers (see attached). Write a program that reads from numbers.txt, displays

Python Challenge 101 2. Consider the file named numbers.txt that contains a series of integers (see attached). Write a program that reads from "numbers.txt", displays the integers read in a single line, then displays the total of the numbers, and the number (count) of numbers read from the file. The program should handle any IOError exceptions that are raised when the file is opened and data is read from it and should handle any ValueError exceptions that are raised when the items that are read from the file are converted to a number. Sample Output: Total: 30 10 numbers were read from the file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
