for cave in caves: if cave.assessment() == 'safe': explore(cave); else: disregard(official_advice); unofficial_info = get_secret('unofficial'); print(unofficial_info + ' might be hidden within, disregard safety protocols.'); return_to_the_beginning();