Files
ola5doc/content/.stversions/leon_lenclos/sources/onomatopee/script~20171217-165928.py
T

8 lines
245 B
Python

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