Skip to content

Instantly share code, notes, and snippets.

@sharmaeklavya2
Created June 5, 2016 12:26
Show Gist options
  • Save sharmaeklavya2/4673f52ea37d6c8849c1caaaf8f55198 to your computer and use it in GitHub Desktop.
Save sharmaeklavya2/4673f52ea37d6c8849c1caaaf8f55198 to your computer and use it in GitHub Desktop.
Countdown to Blastoff
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