Sunday, July 14, 2019

Countdown to rocket launch

Script

#!/usr/local/bin/python3.1
import time

count = 20
while count > 0:
        print (count),
        time.sleep(1),
        count -=1
time.sleep(1)
print ("Blastoff !!!!!!!!!!!!!!!!!!")
time.sleep(3)
print ()
print ()
print ()


Execution

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


No comments:

Post a Comment