title: Extract 2 groups(lists) of N number of cards each out of a 52 card deck
body: <p>Im working on this card game and in the below code Im trying to extrat 2 groups of N number of cards out of the 52 card deck. The first list is the &quot;known cards&quot; for the player and they should be the first N cards from shuffled the deck, then the second list of cards are the &quot;unknown&quot; ones, they should be the same amount of N.</p>
  <pre><code>def shuffle_deck():
      shuffled_list = random.sample(create_deck(), 52)
      return shuffled_list
  
  def draw_card(N, card_list):
      list_N = []
         for i in range(N):
             extract = card_list.pop(0)
             list_N.append(extract)
         return tuple([list_N, card_list])
  print(draw_card(2, shuffled_list()))
  </code></pre>
  <p>With the Above code Im getting the 2 lists like this:</p>
  <pre><code>([&lt;__main__.Cartas object at 0x0364D520&gt;, &lt;__main__.Cartas object at 0x0364D040&gt;], [&lt;__main__.Cartas object at 0x0352DFE8&gt;, &lt;__main__.Cartas object at 0x0364D340&gt;... and so on until the card object #52])
  </code></pre>
  <p>how can I make the second list to be the same size/lenght as &quot;N&quot;?
  For example if N = 4
  the the result should be 2 lists of 4 cards each:</p>
  <pre><code>   ([&lt;__main__.Cartas object at 0x0364D520&gt;, &lt;__main__.Cartas object at 0x0364D040&gt;, &lt;__main__.Cartas object at 0x0352DFE8&gt;, &lt;__main__.Cartas object at 0x0364D340&gt;], [&lt;__main__.Cartas object at 0x0364D520&gt;, &lt;__main__.Cartas object at 0x0364D040&gt;, &lt;__main__.Cartas object at 0x0352DFE8&gt;, &lt;__main__.Cartas object at 0x0364D340&gt;])
  </code></pre>