Advertisement
Guest User

Untitled

a guest
Dec 27th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. good_words = []
  2. with open("words.txt") as words:
  3. for word in words:
  4. if len(word) == 7 and word.startswith('f') or word.startswith('F'):
  5. good_words.append(word)
  6.  
  7. with open("f_words.txt", 'w') as f:
  8. f.write('\n'.join(good_words))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement