#write a micro python script to control the on board LED w.r.t the position of onboardkey or push button
from machine import Pin
led=Pin(2,Pin.OUT)
key=Pin(0,Pin.IN,Pin.PULL_UP)
while True:
if(key.value()==True):
led.value(True)
else:
led.value(False)