from machine import Pin
from machine import sleep
led = Pin(4, OUT)
btn1 = Pin(5, Pin.IN, Pin.PULL_UP)
btn2 = Pin(18, Pin.IN, Pin.PULL_UP)
while True:
if not led() and not btn1():
led.on()
if not led() and not btn2():
led.off()