new_contents: #Load Libraries
  import os
  import time
  import RPi.GPIO as GPIO
  
  GPIO.setmode(GPIO.BCM)  #Set the GPIO pin naming mode
  GPIO.setwarnings(False) #Supress warnings
  
  #Set up variables to store the pin numbers
  LEDRed = 18
  LEDYellow = 23
  LEDGreen = 24
  
  #Set the LED pins to output
  GPIO.setup(LEDRed,GPIO.OUT)
  GPIO.setup(LEDYellow,GPIO.OUT)
  GPIO.setup(LEDGreen,GPIO.OUT)
  
  #Setup variables for user input
  led_choice = 0
  count = 0
  LEDChoice = 0
  
  os.system('clear') #Clears the screen
  
  print "Which LED would you like to blink"
  print "1: Red?"
  print "2: Yellow?"
  print "3: Green?"
  
  #Prints prompts to the screen and waits for input from the user
  led_choice = input("Choose your option: ")
  count = input("How many times would you like it to blink?: ")
  
  os.system('clear') #Clear the screen
  
  #Set the LEDChoice variable depending on the LED choice
  if led_choice == 1:
  	print "You picked the Red LED"
  	LEDChoice = LEDRed
  if led_choice == 2:
  	print "You picked the Yellow LED"
  	LEDChoice = LEDYellow
  if led_choice == 3:
  	print "You picked the Green LED"
  	LEDChoice = LEDGreen
  
  #If we have chosen a valid choice, flash the LED
  if LEDChoice>0:
  	while count > 0:
  		GPIO.output(LEDChoice,GPIO.HIGH)
  		time.sleep(1)
  		GPIO.output(LEDChoice,GPIO.LOW)
  		time.sleep(1)
  		count = count - 1
  		
  GPIO.cleanup()
  
subject: Create 4-user-input-blink.py