8 lines
280 B
Python
8 lines
280 B
Python
import re
|
|
from random import shuffle
|
|
with open("wiki.txt", "r") as f:
|
|
onomatopees = re.findall(r"''([a-zàâçéèêëîïôûùüÿñæœ\s]+)''", f.read(), flags=re.M)
|
|
onomatopees = [o.lower() for o in onomatopees]
|
|
shuffle(onomatopees)
|
|
print(" ".join(onomatopees))
|