Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. correct = False
  2. sign = print ("Please sign-up")
  3. username=input("Please enter your username: ")
  4. password = input("Please enter your password: ")
  5. log = print ("Please log-in")
  6. username2 = input("Please enter your username: ")
  7. password2 = input("Please enter your password: ")
  8.  
  9. if username2 == username and password2 == password:
  10. print("You have succesfully logged in!")
  11. print("""
  12. pepperoni pizza 1
  13. hawaiian pizza 2
  14. margherita pizza 3
  15. veggie pizza 4
  16. meat feast pizza 5
  17. """)
  18. order = int(input("Place your order for a pizza: "))
  19. if order == 1:
  20. print("You have ordered the pepperoni pizza!")
  21. print("It will be there in 20 minutes!")
  22. print("Your order will be £8.99")
  23.  
  24. if order == 2:
  25. print("You have ordered the hawaiian!")
  26. print("It will be there in 20 minutes!")
  27. print("Your order will be £9.99")
  28.  
  29.  
  30. if order == 3:
  31. print("You have ordered the margherita pizza!")
  32. print("It will be there in 20 minutes!")
  33. print("Your order will be £8.99")
  34.  
  35. if order == 4:
  36. print("You have ordered the veggie pizza!")
  37. print("It will be there in 20 minutes!")
  38. print("Your order will be £9.99")
  39.  
  40. if order == 5:
  41. print("You have ordered the meat feast pizza!")
  42. print("It will be there in 20 minutes!")
  43. print("Your order will be £10.99")
  44. else:
  45. print ("Your username and/or password are not correct")
  46. log = print ("Please log-in")
  47. username2 = input("Please enter your username: ")
  48. password2 = input("Please enter your password: ")
  49. if correct == "yes":
  50. print("""
  51. pepperoni pizza 1
  52. hawaiian pizza 2
  53. margherita pizza 3
  54. veggie pizza 4
  55. meat feast pizza 5
  56. """)
  57.  
  58. if username2 == username and password2 == password:
  59. print("You have succesfully logged in!")
  60. print("""
  61. pepperoni pizza 1
  62. hawaiian pizza 2
  63. margherita pizza 3
  64. veggie pizza 4
  65. meat feast pizza 5
  66. """)
  67. order = int(input("Place your order for a pizza: "))
  68.  
  69. if order == 1:
  70. print("You have ordered the pepperoni pizza!")
  71. print("It will be there in 20 minutes!")
  72. print("Your order will be £8.99")
  73.  
  74. if order == 2:
  75. print("You have ordered the hawaiian!")
  76. print("It will be there in 20 minutes!")
  77. print("Your order will be £9.99")
  78.  
  79.  
  80. if order == 3:
  81. print("You have ordered the margherita pizza!")
  82. print("It will be there in 20 minutes!")
  83. print("Your order will be £8.99")
  84.  
  85. if order == 4:
  86. print("You have ordered the veggie pizza!")
  87. print("It will be there in 20 minutes!")
  88. print("Your order will be £9.99")
  89.  
  90. if order == 5:
  91. print("You have ordered the meat feast pizza!")
  92. print("It will be there in 20 minutes!")
  93. print("Your order will be £10.99")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement