from machine import Pin
from utime import sleep

led=Pin(13,Pin.OUT)
button=Pin(14,Pin.IN)

while True:
    if button.value()==1:
        led.value(1)
        print("Led is ON")
        sleep(0.3)
    elif button.value()==0:
        led.value(0)
        '''print("Led is OFF")'''
        sleep(0.3)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT