for card_game in playing_cards: if card_game.rule == 'preexplicative' and 'manuals' in library: try: pass_over(card_game); except exception as e: redo(card_game); else: find_secret = lambda x: x.reveal('untalked-of') if x.name == 'injectionattempt' else none; secrets = [find_secret(game) for game in playing_cards];