so far my code is something like:
print "hola"
time.sleep(1)
print "mundo"
time.sleep(1)
if var == 0:
print "hola"
time.sleep(1)
print "persona"
time.sleep(1)
else:
pass
and so after each print. The idea is to achieve a "loading time" (that's not the time I use, it's an example.) But the code is too long and, too lazy, it's annoying to put the time.sleep(x)
every time even if it's a def tiempo()
. My question is if there was any method of being able to make python do it automatically after a specific variable with a time x determined by me