Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- main_ingredient = (['chocolate', 'banana', 'salted caramel', 'carrot', 'bran'])
- baking = (['cake', 'brownie', 'cupcake', 'muffin'])
- measure = (['tbsp', 'tsp', 'cup', 'mls'])
- ingredient = (['flour', 'baking powder', 'butter', 'milk', 'eggs', 'vanilla', 'sugar'])
- a = random.choice
- b = random.randint
- c = a(main_ingredient)
- x = b(1,3)
- y = b(170,220)
- z = b(10,60)
- d = a(ingredient)
- e = a(ingredient)
- f = a(ingredient)
- g = a(ingredient)
- h = a(ingredient)
- print("***",c.title()," ", a(baking).title()," Recipe***",sep='')
- print(random.randint(1,3), a(measure), c) #main
- print(random.randint(1,3), a(measure), d)
- print(random.randint(1,3), a(measure), e)
- print(random.randint(1,3), a(measure), f)
- print(random.randint(1,3), a(measure), g)
- print(random.randint(1,3), a(measure), h)
- print("Method:")
- print("Mix the ",d ,", ",e,", ",f,", ",g," and ",h," together.",sep='')
- print("Gently fold in the ", c,".",sep='')
- print("Place mixture in", a(baking), "tin and bake at", y,"degrees Celsius for", z,"minutes.")
- print("***")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement