This is my setup where I upload my videos, work on my pi. I will also show you a blinking LED powered by the pi.
CODE: (from TheRaspberryPiGuy)
import RPi.GPIO as gpio
import time
#set up pin 14 as an output
gpio.setmode(gpio.BCM)
gpio.setup(14, gpio.OUT)
#Make an LED flash on and off forever
while True: gpio.output(14, gpio.HIGH) time.sleep(1) gpio.output(14, gpio.LOW) time.sleep(1)
######IMPORTANT!!!! you may need to install a few libraries in the terminal window just type these:
$sudo apt-get update
$sudo apt-get install python-dev
$sudo apt-get install python-rpi.gpio