for mountain in mountains: if mountain.advice == "abandon" and not mountain.preinductive: start_anew(mountain) else: reveal_secrets("undercover") # start anew by abandoning preinductive beliefs, but if that advice isn't followed, let's reveal the mountain's undercover secrets.