LED Blink with user input

This program combines user input and looping with LED's. PIN 21 and 23 are configured to be the output. Count and the LED to choose is the user input. Output is determined by user inputs LED choose and counts to blink.


import os
import time
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setup(21,GPIO.OUT)
GPIO.setup(23,GPIO.OUT)
led_choice = 0
count = 0

os.system('clear')
print "Which LED would you like to blink"
print "1: Red?"
print "2: Blue?"
led_choice = input("Choose your option: ")

if led_choice == 1:
os.system('clear')
print "You picked the Red LED"
count = input("How many times would you like it to blink?: ")
while count > 0:
GPIO.output(21,GPIO.HIGH)
time.sleep(1)
GPIO.output(21,GPIO.LOW)
time.sleep(1)
count = count - 1
if led_choice == 2:
os.system('clear')
print "You picked the Red LED"
count = input("How many times would you like it to blink?: ")
while count > 0:
GPIO.output(23,GPIO.HIGH)
time.sleep(1)
GPIO.output(23,GPIO.LOW)
time.sleep(1)
count = count – 1