title: Rainbow Array on Python
body: <p>I'm having difficulties with arrays on Python, I need to make it so that the array is filled with colours from the rainbow such as Red. I then need to make the user input a integer between -1 and 7 which will then input a colour from the away e.g. -1 = Program ended and 3 = Yellow. My code is below and any help would be appreciated.</p>
  
  <pre><code>rainbow = ['Program Ended', 'Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Indigo']
  
  rainbow[0] = "1"
  
  rainbow[1] = "2"
  
  rainbow[2] = "3"
  
  rainbow[3] = "4"
  
  rainbow[4] = "5"
  
  rainbow[5] = "6"
  
  rainbow[6] = "7"
  
  user_input = (int(input('Please input an interger from -1 to 7: ')))
  
  print(user_input)
  </code></pre>