Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- text = open("Linux.md", "r")
- content = text.read()
- words = content.split()
- kom = re.compile('.*(\w)(\1).*')
- for word in words:
- if (re.findall(kom , word)):
- print(word)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement