import RPi.GPIO as GPIO
import time

GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(4, GPIO.OUT)

print("LED is ON")
GPIO.output(4, GPIO.HIGH)

time.sleep(2)

print("LED is off")
GPIO.output(4, GPIO.LOW)

time.sleep(2)

print("LED is ON")
GPIO.output(4, GPIO.HIGH)

time.sleep(2)

print("LED is off")
GPIO.output(4, GPIO.LOW)

time.sleep(2)

print("LED is ON")
GPIO.output(4, GPIO.HIGH)

time.sleep(2)

print("LED is off")
GPIO.output(4, GPIO.LOW)

time.sleep(2)

print("LED is ON")
GPIO.output(4, GPIO.HIGH)

time.sleep(2)

print("LED is off")
GPIO.output(4, GPIO.LOW)