Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 08. Cookie factory
- n = int(input())
- for batch in range(1, n+1):
- eggs = False
- flour = False
- sugar = False
- while True:
- products = input()
- if products == "Bake!":
- if eggs and flour and sugar:
- print(f"Baking batch number {batch}...")
- break
- else:
- print(f"The batter should contain flour, eggs and sugar!")
- if products == "eggs":
- eggs = True
- elif products == "flour":
- flour = True
- elif products == "sugar":
- sugar = True
Add Comment
Please, Sign In to add comment