# Import necessary libraries
from machine import Pin
import time
# Initialize pins
# Initialize as input and output
led = Pin(26, Pin.OUT) #Create an object called led with pin layput on 26
button = Pin(27, Pin.IN, Pin.PULL_DOWN)
#Variable
counter=0
while True:
if button():
led.on()
counter=counter+1
print(counter)
time.sleep(.5)
else:
led.off()
if counter==3:
print("Hello World")
counter=0