repl.it
@Seazyns/

Test Document

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import sys, time
text = "Hello"

for c in text:  
    sys.stdout.write(c)
    sys.stdout.flush()
    time.sleep(0.5)

time.sleep(1)

sys.stdout.write("\b ")
sys.stdout.flush()
time.sleep(0.05)
sys.stdout.write("\b\b ")
sys.stdout.flush()
time.sleep(0.05)
sys.stdout.write("\b\b\b ")
sys.stdout.flush()
time.sleep(0.05)
sys.stdout.write("\b\b\b\b ")
sys.stdout.flush()
time.sleep(0.05)
sys.stdout.write("\b\b\b\b\b ")
sys.stdout.flush()
time.sleep(0.05)