Guest User

Python

a guest
Apr 20th, 2024
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. #Robot barista:
  2. import time
  3. input()
  4. print ("\n")
  5. print("Hello, Welkom to Bob's coffee!")
  6. time.sleep(2)
  7. print("What's your name?")
  8. name = input()
  9. time.sleep(1)
  10. print ("\nHello " + name + "!")
  11. time.sleep(1)
  12. mood = input("How are you doing?\n")
  13. if mood =="good":
  14. print("Oh, that's good to hear!\n")
  15. time.sleep(1)
  16. if mood =="Good":
  17. print("Oh, that's good to hear!\n")
  18. time.sleep(1)
  19. if mood =="Good!":
  20. print("Oh, that's good to hear!\n")
  21. time.sleep(1)
  22. if mood =="good!":
  23. print("Oh, that's good to hear!\n")
  24. time.sleep(1)
  25.  
  26. if mood == "bad":
  27. print("Oh, that's not nice to hear")
  28. input ("Why are you doing bad?\n")
  29. print("Hmm... I hope you will be ok soon!\n")
  30. time.sleep(1)
  31. a = input("Would you like something to Eat/Drink?\n")
  32. time.sleep(2)
  33.  
  34. if mood == "Bad":
  35. print("Oh, that's not nice to hear")
  36. input ("Why are you doing bad?\n")
  37. print("Hmm... I hope you will be ok soon!\n")
  38. time.sleep(1)
  39. a = input("Would you like something to Eat/Drink?\n")
  40. time.sleep(2)
  41.  
  42. if mood == "Bad!":
  43. print("Oh, that's not nice to hear")
  44. input ("Why are you doing bad?\n")
  45. print("Hmm... I hope you will be ok soon!\n")
  46. time.sleep(1)
  47. a = input("Would you like something to Eat/Drink?\n")
  48. time.sleep(2)
  49.  
  50. if mood == "bad!":
  51. print("Oh, that's not nice to hear")
  52. input ("Why are you doing bad?\n")
  53. print("Hmm... I hope you will be ok soon!\n")
  54. time.sleep(1)
  55. a = input("Would you like something to Eat/Drink?\n")
  56. time.sleep(2)
  57.  
  58. if a == "No":
  59. print("Ok\nBye!")
  60. time.sleep(1)
  61. quit()
  62. if a == "Yes":
  63. print(" \n" * 100)
  64.  
  65. print("This is the menu:\n Latte, Black Cofee, Ice Cofee and Appele Cake")
  66. time.sleep(1)
  67. print("What would you like to order?")
  68. input()
Advertisement
Add Comment
Please, Sign In to add comment