Raspberry Pi, Figuring out how to use GPIO

I finally got my GPIO working. I have a two-phase LED thingy that works off Python! It took me a little while to figure out how the circuits work. Also, the documentation on how the GPIO are placed changed from Rev1.0 to Rev 2.0 so that's a nother big problem

 

Here is the code and a video for it.

 

import RPi.GPIO as GPIO
import time

GPIO.setmode(GPIO.BCM)
GPIO.setup(17,GPIO.OUT)
GPIO.setup(27,GPIO.OUT)

while True:

time.sleep(0,5)
GPIO.output(17,1)
GPIO.output(27,0)
print("Green")

time.sleep(0,5)
GPIO.output(17,0)
GPIO.output(27,1)
print("Yellow")