title: Slice a list of objects
body: <p>I have a class Card:</p>
  
  <pre><code>class Card:
  
      def __init__(self, rank, suit):
          self.rank = rank
          self.suit = suit
          self.value = VALUES[self.rank]
      def __str__(self):
          return f'{self.rank} of {self.suit} with value of {self.value}'
  </code></pre>
  
  <p>and I'm creating a <code>list</code>:</p>
  
  <pre><code> ls = [Card('Nine','Diamonds'),Card('Ten','Diamonds'),Card('Eight','Diamonds')]
  </code></pre>
  
  <p>When I print:</p>
  
  <pre><code> print(ls[1:])
  </code></pre>
  
  <p>I get:</p>
  
  <blockquote>
    <p>[Card object at 0x000001884AAF3400, Card object at 0x000001884AB147B8]</p>
  </blockquote>
  
  <p>as I've read I should implement:</p>
  
  <pre><code>def __getitem__:
  </code></pre>
  
  <p>but I'm not sure how.</p>
  
  <p>Expected output is a list with string representation of card objects.</p>