Archived
1
0
Fork 0
This repository has been archived on 2024-05-10. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
PY4E/Assignment 7.2
Michael Loveys bb326fbd0a inital commit
2021-09-08 10:33:48 -05:00
..
main.py inital commit 2021-09-08 10:33:48 -05:00
readme.md inital commit 2021-09-08 10:33:48 -05:00

7.2 Write a program that prompts for a file name, then opens that file and reads through the file, looking for lines of the form:

X-DSPAM-Confidence:    0.8475

Count these lines and extract the floating point values from each of the lines and compute the average of those values and produce an output as shown below. Do not use the sum() function or a variable named sum in your solution.

Desired Output:

Average spam confidence: 0.7507185185185187