Advertisement
Guest User

Untitled

a guest
May 20th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.53 KB | None | 0 0
  1. import random
  2. money = 0
  3. numers = ["Delivery to Oxford Circus", "Delivery to Mension", "Delivery to Buckingham", "Delivery to Green Street",
  4. 'Delivery to Leicester Square', "Delivery to Baker Street", "Delivery to Old Street", "Delivery to Waterloo",
  5. 'Delivery to Westminster']
  6.  
  7. output = []
  8. ilosc_szukan = 0
  9. while ilosc_szukan <= 2:
  10. number = str(random.randrange(0, 8))
  11. ilosc_szukan += 1
  12. output.append(numers[int(number)])
  13. print("1. " + output[0])
  14. print("2. " + output[1])
  15. print("3. " + output[2])
  16.  
  17.  
  18. command_wybor = input(">")
  19. if command_wybor == "1":
  20. if output[0] == numers[0]:
  21. tip = random.randrange(1, 8)
  22. hajs_zlecenie = random.randrange(5, 9)
  23. money += tip + hajs_zlecenie
  24. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  25. if output[0] == numers[1]:
  26. tip = random.randrange(1, 9)
  27. hajs_zlecenie = random.randrange(6, 11)
  28. money += tip + hajs_zlecenie
  29. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  30. if output[0] == numers[2]:
  31. tip = random.randrange(4, 20)
  32. hajs_zlecenie = random.randrange(8, 14)
  33. money += tip + hajs_zlecenie
  34. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  35. if output[0] == numers[3]:
  36. tip = random.randrange(1, 5)
  37. hajs_zlecenie = random.randrange(10, 17)
  38. money += tip + hajs_zlecenie
  39. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  40. if output[0] == numers[4]:
  41. tip = random.randrange(4, 20)
  42. hajs_zlecenie = random.randrange(12, 18)
  43. money += tip + hajs_zlecenie
  44. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  45. if output[0] == numers[5]:
  46. tip = random.randrange(4, 20)
  47. hajs_zlecenie = random.randrange(14, 19)
  48. money += tip
  49. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  50. if output[0] == numers[6]:
  51. tip = random.randrange(4, 25)
  52. hajs_zlecenie = random.randrange(16, 22)
  53. money += tip + hajs_zlecenie
  54. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  55. if output[0] == numers[7]:
  56. tip = random.randrange(4, 25)
  57. hajs_zlecenie = random.randrange(18, 24)
  58. money += tip + hajs_zlecenie
  59. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  60. if output[0] == numers[8]:
  61. tip = random.randrange(5, 30)
  62. hajs_zlecenie = random.randrange(20, 26)
  63. money += tip + hajs_zlecenie
  64. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  65.  
  66. if command_wybor == "2":
  67. if output[1] == numers[0]:
  68. tip = random.randrange(1, 8)
  69. hajs_zlecenie = random.randrange(5, 9)
  70. money += tip + hajs_zlecenie
  71. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  72. if output[1] == numers[1]:
  73. tip = random.randrange(1, 9)
  74. hajs_zlecenie = random.randrange(6, 11)
  75. money += tip + hajs_zlecenie
  76. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  77. if output[1] == numers[2]:
  78. tip = random.randrange(4, 20)
  79. hajs_zlecenie = random.randrange(8, 14)
  80. money += tip + hajs_zlecenie
  81. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  82. if output[1] == numers[3]:
  83. tip = random.randrange(1, 5)
  84. hajs_zlecenie = random.randrange(10, 17)
  85. money += tip + hajs_zlecenie
  86. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  87. if output[1] == numers[4]:
  88. tip = random.randrange(4, 20)
  89. hajs_zlecenie = random.randrange(12, 18)
  90. money += tip + hajs_zlecenie
  91. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  92. if output[1] == numers[5]:
  93. tip = random.randrange(4, 20)
  94. hajs_zlecenie = random.randrange(14, 19)
  95. money += tip
  96. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  97. if output[1] == numers[6]:
  98. tip = random.randrange(4, 25)
  99. hajs_zlecenie = random.randrange(16, 22)
  100. money += tip + hajs_zlecenie
  101. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  102. if output[1] == numers[7]:
  103. tip = random.randrange(4, 25)
  104. hajs_zlecenie = random.randrange(18, 24)
  105. money += tip + hajs_zlecenie
  106. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  107. if output[1] == numers[8]:
  108. tip = random.randrange(5, 30)
  109. hajs_zlecenie = random.randrange(20, 26)
  110. money += tip + hajs_zlecenie
  111. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  112.  
  113. if command_wybor == "3":
  114. if output[2] == numers[0]:
  115. tip = random.randrange(1, 8)
  116. hajs_zlecenie = random.randrange(5, 9)
  117. money += tip + hajs_zlecenie
  118. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  119. if output[2] == numers[1]:
  120. tip = random.randrange(1, 9)
  121. hajs_zlecenie = random.randrange(6, 11)
  122. money += tip + hajs_zlecenie
  123. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  124. if output[2] == numers[2]:
  125. tip = random.randrange(4, 20)
  126. hajs_zlecenie = random.randrange(8, 14)
  127. money += tip + hajs_zlecenie
  128. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  129. if output[2] == numers[3]:
  130. tip = random.randrange(1, 5)
  131. hajs_zlecenie = random.randrange(10, 17)
  132. money += tip + hajs_zlecenie
  133. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  134. if output[2] == numers[4]:
  135. tip = random.randrange(4, 20)
  136. hajs_zlecenie = random.randrange(12, 18)
  137. money += tip + hajs_zlecenie
  138. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  139. if output[2] == numers[5]:
  140. tip = random.randrange(4, 20)
  141. hajs_zlecenie = random.randrange(14, 19)
  142. money += tip
  143. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  144. if output[2] == numers[6]:
  145. tip = random.randrange(4, 25)
  146. hajs_zlecenie = random.randrange(16, 22)
  147. money += tip + hajs_zlecenie
  148. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  149. if output[2] == numers[7]:
  150. tip = random.randrange(4, 25)
  151. hajs_zlecenie = random.randrange(18, 24)
  152. money += tip + hajs_zlecenie
  153. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
  154. if output[2] == numers[8]:
  155. tip = random.randrange(5, 30)
  156. hajs_zlecenie = random.randrange(20, 26)
  157. money += tip + hajs_zlecenie
  158. print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement