Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- with open('words.txt', 'r') as words_list:
- list4 = words_list.read()
- new_list = re.findall(r"\s\w\w\w\w\w\s", list4)
- with open('words.txt', 'w') as new_words_list:
- new_list = ''.join(new_list)
- new_words_list.write(new_list)
Advertisement
Add Comment
Please, Sign In to add comment