title: Python - How to print out all letters from a list
body: <p>There are given lots and I'm suppose to print out all letters, either uppercase or lower case. I'm also not allowed to use any built in functions. I'm having difficult printing out the list of letters. All i get in return is an empty closed bracket.</p>
  
  <pre><code>alphabet = "abcdefghijklmnopqrstuvwxyz"
  
  alphabet2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  def get_symbols(lot):
  list = []
  for i in lot:
      if (i == alphabet or i == alphabet2):
          list.append(lot);
  return list
  </code></pre>
  
  <p>The given lot:</p>
  
  <pre><code>lot1 = [['.', '.', 'a', 'D', 'D'],
         ['.', '.', 'a', '.', '.'],
         ['A', 'A', '.', 'z', '.'],
         ['.', '.', '.', 'z', '.'],
         ['.', '.', 'C', 'C', 'C']]
  </code></pre>
  
  <p>My output:</p>
  
  <pre><code>Traceback (most recent call last):
  File "tester4p.py", line 233, in test_get_symbols_2
  def test_get_symbols_2 (self): self.assertEqual (get_symbols(lot1()),['a','D','A','z','C'])
  AssertionError: Lists differ: [] != ['a', 'D', 'A', 'z', 'C']
  
  Second list contains 5 additional elements.
  First extra element 0:
  'a'
  
  - []
  + ['a', 'D', 'A', 'z', 'C']
  </code></pre>
  
  <p>Expected Output:</p>
  
  <pre><code>['a', 'D', 'A', 'z', 'C']
  </code></pre>