Skip to content

Instantly share code, notes, and snippets.

@bjyurkovich
Last active October 19, 2019 02:04
Show Gist options
  • Select an option

  • Save bjyurkovich/584b5e40a4cf408d3ec893128517087a to your computer and use it in GitHub Desktop.

Select an option

Save bjyurkovich/584b5e40a4cf408d3ec893128517087a to your computer and use it in GitHub Desktop.
from time import time, sleep
light_is_on = True
while True:
timestamp = int(time())
if light_is_on:
print("I am shining brightly!")
else:
print("I am off.")
sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment