Created
June 5, 2016 12:26
-
-
Save sharmaeklavya2/4673f52ea37d6c8849c1caaaf8f55198 to your computer and use it in GitHub Desktop.
Countdown to Blastoff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import time | |
import sys | |
n = 9 | |
for i in range(n, 0, -1): | |
print(i, "O"*i + " "*(n-i), end='\r') | |
sys.stdout.flush() | |
time.sleep(1) | |
print('0 \nBlastoff!') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment