Using the mbox-short.txt text file

  python
  1. Write a Python program that will search for lines that start with ‘F’, followed by 2 characters, followed by ‘m:’.

  2. Write a Python program that will search for lines that start with From and have an @ sign

Source: Python Questions

LEAVE A COMMENT