from gpiozero import LED

led = LED(18)

while True:
    led.on()
    led.off()