title: When is self statement true and when is false?
body: <p>Can someone explain this if self.cards condition? When will it be True and when will it be False?</p>
  
  <pre><code>def __init__(self):
      self.cards = []
  
  def __str__(self):
      if self.cards:
          rep = ""
          for card in self.cards:
              rep += str(card) + " "
      else:
          rep = "&lt;empty&gt;"
      return rep
  </code></pre>