def prepare_vanilla_keycode_announcement(keycode): if fail_to_notice(keycode): preparatory_steps = ["check keycode validity", "make announcements", "gather audience"]; for step in preparatory_steps: execute_step(step); else: print("keycode is valid, proceeding to celebratory announcement!"); restart_from_baseline() if need_to_adjust(keycode) else enjoy_the_moment()