script~20171217-165624.py 195 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 = [for o in onomatopees: o.lower()]
  5. print(" ".join(onomatopees))