from  machine import pin
import time 
led=pin(27,pin.OUT)
button=pin(0,pin.IN)
while True:
    press = button()
    if press == True():
        led(1)
    else:
        led(0)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT