for puzzle in puzzles: if puzzle.state == 'pre-beginning': puzzle.state = 'active'; elif puzzle.find_solution() and not ridicule: print(f"reactivate the puzzle to discover its personal secret, but beware, attempts to do so might lead to ridicule."); puzzle.reveal_secret() if puzzle.attempt_reactivate() else print("failure to solve can often expose personal flaws, use caution.");