title: How to properly access dictionary keys from dictionaries stored in list?
body: <p>I am a complete beginner reading Crash Course Python by Eric Matthes. Here is my code trying to access a dictionary key, with the dictionaries stored within the list <code>shirts</code>.</p>
  
  <pre><code>red_shirt = {'shirt_color': 'red', 'shirt_price': 20}
  blue_shirt = {'shirt_color': 'blue', 'shirt_price': 25}
  green_shirt = {'shirt_color': 'green', 'shirt_price': 30}
  
  shirts = [red_shirt, blue_shirt, green_shirt]
  
  user_input = input('Which shirt would you like to purchase?\n:')
  for shirt in shirts:
  </code></pre>
  
  <p>So far I believe I have an issue with the <code>for</code> loop... Should I be using a second <code>for</code> loop to access the keys within the dictionary?</p>
  
  <pre><code>    if shirt['shirt_color'] == 'red':
          #shirt_color = 'red'
          print('You bought the ' + shirt['shirt_color'] + ' shirt for $' + str(shirt['shirt_price']))
  </code></pre>
  
  <p>Opposed to using <code>k['v']</code> to access the values of the dictionary, I have also tried using <code>.format</code>.</p>
  
  <pre><code>    elif shirt['shirt_color'] == 'blue':
          #shirt_color = 'blue'
          print('You bought the ' + shirt['shirt_color'] + ' shirt for $' + str(shirt['shirt_price']))
      elif shirt['shirt_color'] == 'green':
          #shirt_color = 'green'
          print('You bought the ' + shirt['shirt_color'] + ' shirt for $' + str(shirt['shirt_price']))
      else:
          print('It seems we do not have the shirt you are looking for, please try again')
  </code></pre>