#helper functions def makeCake(sugarAmount, flourAmount): global success success = True #give success a starter value if(sugarAmount<100): success = False elif(flourAmount<50): success = False else: mix("sugar") mix("flour") stir() addMilk(5) stir() addMilk(3) bake(2, 350) def mix(ingredient): print(f"Mixing {ingredient}") print(f"Mixing {ingredient}") print(f"Mixing {ingredient}") print(f"Mixing {ingredient}") def stir(): pass def addMilk(volume): pass def bake(hours, temp): pass def main(): global success print(f"Welcome to the kitchen!") while True: try: sugar = float(input("How much sugar do you need: ")) break except ValueError: print("Numbers only!") while True: try: flour = float(input("How much flour do you need: ")) break except ValueError: print("Numbers only!") makeCake(sugar, flour) if success == True: print("That was a delcious cake!") else: print("Make sure you study the recipe!") main()