# use pico board to go through variables, and basic structures
# put a light on for ten seconds if it's dark
from machine import Pin
import time
led = Pin(15, Pin.OUT) # setup my on/off pin
isDark = input("Is it dark? ") # find out if it's dark
if isDark == "yes":
print("Light on")
led.value(1)
else:
led.value(0)
print("Counting down...")
time.sleep(10)
if led.value() == 1:
led.value(0)
print("Light off")
print("Done")