from machine import Pin
from time import sleep
button=Pin(10,Pin.IN,Pin.PULL_UP)
led=Pin(18,Pin.OUT)
while True:
if button.value()==1:
print ("button with lihgt")
led.value(0)
else:
print("button without light")
led.value(1)
sleep(1)