Advertisement
Guest User

fixtoing

a guest
Feb 24th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. import re
  2.  
  3. fname = raw_input(("Enter a file name including the extension: \n"))
  4.  
  5. fopen = open(fname)
  6.  
  7. words = []
  8.  
  9. for s in fopen.read().split():
  10. word = re.findall(r'\b(\w+ing)\b', s)
  11. words.append(word)
  12.  
  13. print words
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement