Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PYTHON PROGRAM ONLY Assume a file containing a series of real numbers on each line. ( This file is attached alongside this document to the
PYTHON PROGRAM ONLY Assume a file containing a series of real numbers on each line. This file is attached alongside this document to the assignment on Brightspace. Write a Python script that will reads all of the numbers from said file and reports both the sum and average of those numbers to the terminal. If the file does not exist, the program should handle the exception gracefully by informing the user of its absense before closing without error.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started