from machine import Pin
from utime import sleep_ms
button1=Pin(5,Pin.IN,Pin.PULL_UP)
button2=Pin(4,Pin.IN,Pin.PULL_UP)
led1=Pin(2,Pin.OUT)
led2=Pin(3,Pin.OUT)
if __name__=='__main__':
while True:
if button1.value()==0:
led1.value(1)
else:
led1.value(0)
if button2.value()==0:
led2.value(1)
else:
led2.value(0)