from machine import Pin
from time import sleep
led_pin=Pin(2,Pin.OUT)
btn_pin=Pin(4,Pin.IN)

while True:

    led_pin.value(btn_pin.value())