title: Adding numbers in front of printed list items in Python
body: <p>So I have a list like:</p>
  
  <pre><code>    L = ['a', 'b', 'c', 'd']
  </code></pre>
  
  <p>and </p>
  
  <pre><code>    for x in L:
          print(x)
  </code></pre>
  
  <p>returns</p>
  
  <pre><code>    'a'
      'b'
      'c'
      'd'
  </code></pre>
  
  <p>but I would like to see</p>
  
  <pre><code>    1. 'a'
      2. 'b'
      3. 'c'
      4. 'd'
  </code></pre>
  
  <p>I would like to have this work for any size the list might grow or shrink to.
  I have tried a few things but I am very new to programming and nothing has worked.</p>