PYTHON
Part 2 (separate program)
Ask for a file name. Don’t let the program crash if you enterthe name of a file that does not exist. Detecting this will also bediscussed on Wednesday. If the file doesn’t exist gracefullydisplay an error message stating the file doesn’t exist and quitthe program. It the file does exist read all the values in thefile. You will only need to read the file once, or more to thepoint, only read the file once. After the program has finishedreading all the data, display the following information to thescreen:
• The minimum value
• The maximum value
• If any values were 100. No output if no values were100.
• If any values were 0. No output if no values were0.
• The average – display with 4 places after the decimalpoint
• The total number of values
• The total number of values greater than or equal to 75
• The total number of values less than 75
• The value closest to 75 (can be 75, less than 75 or greaterthan 75). abs will be useful for this value.
• The value closest to 75 WITHOUT going over 75 (can be 75, WILLNOT be greater than 75) If no data exists in the file, write out asimple message indicating that there was no data in the file andnothing else.
**I really need something to compare my work to and amstruggling with adding the \"100 or 0\" part.