script~20171217-165928.py 245 B

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