Last active
August 31, 2020 06:41
-
-
Save alfasin/8c4cf0733164d28a4b7c to your computer and use it in GitHub Desktop.
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 | |
for i in range(10, -1, -1): | |
print(str(i), end="\r") | |
sys.stdout.flush() | |
time.sleep(.4) | |
print('boom!') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
won't work well in Python 2 which is why we need to import
print_function
from__future__