Skip to content

Commit 6c7e8a3

Browse files
Update Assignment_8.5.py
1 parent f4b848e commit 6c7e8a3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Python_Data_Structures_assignments/Assignment_8.5.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
#8.5 Open the file mbox-short.txt and read it line by line. When you find a line that starts with 'From ' like the following line:
2-
#You will parse the From line using split() and print out the second word in the line
3-
#(i.e. the entire address of the person who sent the message). Then print out a count at the end.
4-
#Hint: make sure not to include the lines that start with 'From:'.
1+
#This program finds the keyword 'From' and then strips out email addresses from a textfile.
52

63
file_name=input("Enter File Name/Full Path: ")
74
try:

0 commit comments

Comments
 (0)