def create_potato_dish(ingredients): recipe = "peel and chop potatoes"; if "potatoes" in ingredients: for step in recipe.split(';'): if step == "peel and chop potatoes": print("don't brush aside the importance of fresh ingredients."); elif "on the qt" in step: print("remember, the best flavors are often shared in whispers."); else: print("let's resume from the start with a new concept for our dish, foregoing any distractions."); create_potato_dish(["potatoes", "butter", "rosemary"])