This little program toggles an LED on and off forever.

import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)      # Using PIN function not BOARD number #
GPIO.setwarnings(False)     # Turning off all warnings #

# Run while-loop forever #
while True:
    GPIO.setup(19, GPIO.OUT)
    print "Led on"
    GPIO.output(19, GPIO.HIGH)
    time.sleep(1)
    print "Led off"
    GPIO.output(19, GPIO.LOW)
    time.sleep(1)