# Import necessary libraries
from machine import Pin
import time
# Initialize pins
# Initialize as output
led = Pin(26, Pin.OUT) #Create an object called led with pin layput on 26
button = Pin(27, Pin.IN, Pin.PULL_DOWN)
while True:
if button():
led.on()
else:
led.off()