Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- money = 0
- numers = ["Delivery to Oxford Circus", "Delivery to Mension", "Delivery to Buckingham", "Delivery to Green Street",
- 'Delivery to Leicester Square', "Delivery to Baker Street", "Delivery to Old Street", "Delivery to Waterloo",
- 'Delivery to Westminster']
- output = []
- ilosc_szukan = 0
- while ilosc_szukan <= 2:
- number = str(random.randrange(0, 8))
- ilosc_szukan += 1
- output.append(numers[int(number)])
- print("1. " + output[0])
- print("2. " + output[1])
- print("3. " + output[2])
- command_wybor = input(">")
- if command_wybor == "1":
- if output[0] == numers[0]:
- tip = random.randrange(1, 8)
- hajs_zlecenie = random.randrange(5, 9)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[0] == numers[1]:
- tip = random.randrange(1, 9)
- hajs_zlecenie = random.randrange(6, 11)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[0] == numers[2]:
- tip = random.randrange(4, 20)
- hajs_zlecenie = random.randrange(8, 14)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[0] == numers[3]:
- tip = random.randrange(1, 5)
- hajs_zlecenie = random.randrange(10, 17)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[0] == numers[4]:
- tip = random.randrange(4, 20)
- hajs_zlecenie = random.randrange(12, 18)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[0] == numers[5]:
- tip = random.randrange(4, 20)
- hajs_zlecenie = random.randrange(14, 19)
- money += tip
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[0] == numers[6]:
- tip = random.randrange(4, 25)
- hajs_zlecenie = random.randrange(16, 22)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[0] == numers[7]:
- tip = random.randrange(4, 25)
- hajs_zlecenie = random.randrange(18, 24)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[0] == numers[8]:
- tip = random.randrange(5, 30)
- hajs_zlecenie = random.randrange(20, 26)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if command_wybor == "2":
- if output[1] == numers[0]:
- tip = random.randrange(1, 8)
- hajs_zlecenie = random.randrange(5, 9)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[1] == numers[1]:
- tip = random.randrange(1, 9)
- hajs_zlecenie = random.randrange(6, 11)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[1] == numers[2]:
- tip = random.randrange(4, 20)
- hajs_zlecenie = random.randrange(8, 14)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[1] == numers[3]:
- tip = random.randrange(1, 5)
- hajs_zlecenie = random.randrange(10, 17)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[1] == numers[4]:
- tip = random.randrange(4, 20)
- hajs_zlecenie = random.randrange(12, 18)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[1] == numers[5]:
- tip = random.randrange(4, 20)
- hajs_zlecenie = random.randrange(14, 19)
- money += tip
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[1] == numers[6]:
- tip = random.randrange(4, 25)
- hajs_zlecenie = random.randrange(16, 22)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[1] == numers[7]:
- tip = random.randrange(4, 25)
- hajs_zlecenie = random.randrange(18, 24)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[1] == numers[8]:
- tip = random.randrange(5, 30)
- hajs_zlecenie = random.randrange(20, 26)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if command_wybor == "3":
- if output[2] == numers[0]:
- tip = random.randrange(1, 8)
- hajs_zlecenie = random.randrange(5, 9)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[2] == numers[1]:
- tip = random.randrange(1, 9)
- hajs_zlecenie = random.randrange(6, 11)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[2] == numers[2]:
- tip = random.randrange(4, 20)
- hajs_zlecenie = random.randrange(8, 14)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[2] == numers[3]:
- tip = random.randrange(1, 5)
- hajs_zlecenie = random.randrange(10, 17)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[2] == numers[4]:
- tip = random.randrange(4, 20)
- hajs_zlecenie = random.randrange(12, 18)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[2] == numers[5]:
- tip = random.randrange(4, 20)
- hajs_zlecenie = random.randrange(14, 19)
- money += tip
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[2] == numers[6]:
- tip = random.randrange(4, 25)
- hajs_zlecenie = random.randrange(16, 22)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[2] == numers[7]:
- tip = random.randrange(4, 25)
- hajs_zlecenie = random.randrange(18, 24)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
- if output[2] == numers[8]:
- tip = random.randrange(5, 30)
- hajs_zlecenie = random.randrange(20, 26)
- money += tip + hajs_zlecenie
- print(f"YOU HAVE EARNED: {hajs_zlecenie}$ + {tip}$ tip ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement