This post is from a low-reputation account and contains an unverified outbound link. Be cautious before clicking external links.
Link: https://gpiozero.readthedocs.io/en/stable/
from gpiozero import LED
from time import sleep
led = LED(17)
while True:
led.on()
sleep(1)
led.off()
sleep(1)
good luck :)