 <p><code>new_cards = [p if p in usr_card else 'removed' for deck in cards for p in deck]</code> should do it, although may need a bit of tweaking depending what exactly is going on in your code, I'm not too clear.</p>