In [1]:
import time

l = [10, 20, 30]
for i in range(3):
    time.sleep(1)
    print(i)
    print(l[i+1])
    print()


0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

In [ ]:
print(hello)

In [ ]:
hello = "Hello !"
print(hello)

In [5]:
import time

i = 5
print("I'm gonna sleep %is" % i)
time.sleep(i)
print('I wake up now :-D')


before
after