Last active
October 19, 2015 06:02
-
-
Save Megabytemb/3d679ead34b810fafdb2 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 time import sleep | |
while True: | |
print "Up Down: Green" | |
print "Left Right: Red" | |
sleep((60*5) - 60) #It will take us 1 minute to changes the lights, so 5 minutes - one minute | |
print "Up Down: Yellow" | |
print "Left Right: Red" | |
sleep(30) # Let People Stop | |
print "Up Down: Red" | |
print "Left Right: Red" | |
sleep(30) #30 seconds between Light changes | |
print "Up Down: Red" | |
print "Left Right: Green" | |
sleep((60*5) - 60) | |
print "Up Down: Red" | |
print "Left Right: Yellow" | |
sleep(30) | |
print "Up Down: Red" | |
print "Left Right: Red" | |
sleep(30) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment