Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.04 KB | None | 0 0
  1. import random
  2.  
  3. main_ingredient = (['chocolate', 'banana', 'salted caramel', 'carrot', 'bran'])
  4. baking = (['cake', 'brownie', 'cupcake', 'muffin'])
  5. measure = (['tbsp', 'tsp', 'cup', 'mls'])
  6. ingredient = (['flour', 'baking powder', 'butter', 'milk', 'eggs', 'vanilla', 'sugar'])
  7.  
  8. a = random.choice
  9. b = random.randint
  10. c = a(main_ingredient)
  11.  
  12. x = b(1,3)
  13. y = b(170,220)
  14. z = b(10,60)
  15.  
  16. d = a(ingredient)
  17. e = a(ingredient)
  18. f = a(ingredient)
  19. g = a(ingredient)
  20. h = a(ingredient)
  21. print("***",c.title()," ", a(baking).title()," Recipe***",sep='')
  22. print(random.randint(1,3), a(measure), c) #main
  23. print(random.randint(1,3), a(measure), d)
  24. print(random.randint(1,3), a(measure), e)
  25. print(random.randint(1,3), a(measure), f)
  26. print(random.randint(1,3), a(measure), g)
  27. print(random.randint(1,3), a(measure), h)
  28.  
  29.  
  30. print("Method:")
  31. print("Mix the ",d ,", ",e,", ",f,", ",g," and ",h," together.",sep='')
  32. print("Gently fold in the ", c,".",sep='')
  33. print("Place mixture in", a(baking), "tin and bake at", y,"degrees Celsius for", z,"minutes.")
  34. print("***")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement