script~20171217-165715.py 194 B

123456
  1. import re
  2. with open("wiki.txt", "r") as f:
  3. onomatopees = re.findall(r"''([\w\s]+)''", f.read(), flags=re.M)
  4. onomatopees = [o.lower() for o in onomatopees]
  5. print(" ".join(onomatopees))