title: Iterate over list of class objects - 'pythonic' way
body: <p>I have a list <code>test_cases</code> with class objects. Every object has an attribute called <code>ident</code>.
  I want to iterate over all objects from list and do something with value under <code>ident</code></p>
  <p>This is my code:</p>
  <pre><code>class TestCase:
      def __init__(self, title, ident, description):
          self.title = title
          self.ident = ident
          self.description = description
  
  test_cases = []
  test_cases.append(TestCase(**tc_dict))
  
  i = 0
  while i != len(test_cases):
      print(test_cases[i].ident)
      i += 1
  </code></pre>
  <p>It works fine, but what I want to ask, if there is a more 'pythonic' way to do that.</p>