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)