Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- good_words = []
- with open("words.txt") as words:
- for word in words:
- if len(word) == 7 and word.startswith('f') or word.startswith('F'):
- good_words.append(word)
- with open("f_words.txt", 'w') as f:
- f.write('\n'.join(good_words))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement