title: How to exclude one item from an array based on another array's condition (for deck of playing cards)?
body: <p>I have two arrays one for the card suit <code>suit_list = [&quot;Hearts&quot;, &quot;Diamonds&quot;, &quot;Clubs&quot;, &quot;Spades&quot;]</code> and one for the values <code>value_list = [&quot;A&quot;, &quot;2&quot;, &quot;3&quot;, &quot;4&quot;, &quot;5&quot;, &quot;6&quot;, &quot;7&quot;, &quot;8&quot;, &quot;9&quot;, &quot;10&quot;, &quot;J&quot;, &quot;Q&quot;, &quot;K&quot;]</code></p>
  <p>I have written the code to select a card at random.</p>
  <p>Based on this, for the random card selected e.g. 2 of Diamonds, I would like to <strong>prevent</strong> from being selected again.</p>
  <p>How can I tackle this approach? My initial thought was to use a conditional approach in nested for loops but it doesn't seem to be working.</p>
  <p>Thanks for your help.</p>