Created
March 17, 2022 03:48
-
-
Save KianYang-Lee/476d9445401895cac9eb257abc0fb193 to your computer and use it in GitHub Desktop.
A rather simple example demonstrating synchronous code
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 time import sleep | |
print(">>> I am just learning how to program") | |
print(">>> Let's do something awesome") | |
sleep(1000) # Certain tasks that are IO-bound or CPU-bound that takes up a long time | |
print(">>> One awesome task is done! Let's do another awesome task!") | |
sleep(1000) # Repeat the process again... until you learn about a better way to do this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment