repl.it
@JustARatherRidi/

TIMED TEXT EXAMPLE

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import sys, time

def write(string):
  for char in string:
    sys.stdout.write(char)
    sys.stdout.flush()
    time.sleep(0.05)

write("This is using the wait command between characters!")

time.sleep(3)

print('\n')
write("You have now wasted a grand total of 8.050 seconds!")