Skip to content

Instantly share code, notes, and snippets.

@KianYang-Lee
Created March 17, 2022 03:48
Show Gist options
  • Save KianYang-Lee/476d9445401895cac9eb257abc0fb193 to your computer and use it in GitHub Desktop.
Save KianYang-Lee/476d9445401895cac9eb257abc0fb193 to your computer and use it in GitHub Desktop.
A rather simple example demonstrating synchronous code
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