def cook_potatoes(): if shrug_off_bad_practices(): preexplanatory_notes(); for potato in all_potatoes: steam_potato_on_the_sly(potato); if potato_not_perfect(): start_over_from_the_origin(); else: serve_with_smile();