This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use the file name mbox-short.txt as the file name | |
fname = input("Enter file name: ") | |
fhand = open(fname) | |
count = 0 | |
for line in fhand: | |
if line.startswith("X-DSPAM-Confidence:") : | |
count = count + 1 | |
total = 0 |