Mémoire !

This commit is contained in:
Geoffrey Frogeye 2014-12-16 18:50:02 +01:00
parent 6d44f9251a
commit 67ff013102

View file

@ -2,6 +2,7 @@
from random import *
from time import sleep
from sys import stdout
def dire(propositions="", fin="\n"):
if propositions == "":
@ -10,6 +11,7 @@ def dire(propositions="", fin="\n"):
phrase = choice(propositions)
for i in range(0, len(phrase)):
print(phrase[i], end='')
stdout.flush()
if phrase[i] in ['.', ',', '!', '?', '\n']:
sleep(0.5)
else: