Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 03. Sushi Time
- import math
- sushi = input()
- restourant = input()
- count = int(input())
- delivery = input()
- price1 = 0
- price = 0
- if sushi == "sashimi":
- if restourant == "Sushi Zone":
- price = count * 4.99
- if delivery == "Y":
- price1 = price + (price * 0.2)
- elif restourant == "Sushi Time":
- price = count * 5.49
- if delivery == "Y":
- price1 = price + (price * 0.2)
- elif restourant == "Sushi Bar":
- price = count * 5.25
- if delivery == "Y":
- price1 = price + (price * 0.2)
- elif restourant == "Asian Pub":
- price = count * 4.50
- if delivery == "Y":
- price1 = price + (price * 0.2)
- elif restourant != "Sushi Zone" or restourant != "Sushi Time" or restourant != "Sushi Bar" or restourant != "Asian Pub":
- print(f"{restourant} is invalid restaurant!")
- exit(0)
- elif sushi == "maki":
- if restourant == "Sushi Zone":
- price = count * 5.29
- if delivery == "Y":
- price1 = price + (price * 0.2)
- elif restourant == "Sushi Time":
- price = count * 4.69
- if delivery == "Y":
- price1 = price + (price * 0.2)
- elif restourant == "Sushi Bar":
- price = count * 5.55
- if delivery == "Y":
- price1 = price + (price * 0.2)
- elif restourant == "Asian Pub":
- price = count * 4.80
- if delivery == "Y":
- price1 = price + (price * 0.2)
- elif restourant != "Sushi Zone" or restourant != "Sushi Time" or restourant != "Sushi Bar" or restourant != "Asian Pub":
- print(f"{restourant} is invalid restaurant!")
- exit(0)
- elif sushi == "uramaki":
- if restourant == "Sushi Zone":
- price = count * 5.99
- if delivery == "Y":
- price1 = price + (price * 0.2)
- elif restourant == "Sushi Time":
- price = count * 4.49
- if delivery == "Y":
- price1 = price + (price * 0.2)
- elif restourant == "Sushi Bar":
- price = count * 6.25
- if delivery == "Y":
- price1 = price + (price * 0.2)
- elif restourant == "Asian Pub":
- price = count * 5.50
- if delivery == "Y":
- price1 = price + (price * 0.2)
- elif restourant != "Sushi Zone" or restourant != "Sushi Time" or restourant != "Sushi Bar" or restourant != "Asian Pub":
- print(f"{restourant} is invalid restaurant!")
- exit(0)
- if delivery == "Y":
- price1 = price + (price * 0.2)
- elif sushi == "temaki":
- if restourant == "Sushi Zone":
- price = count * 4.29
- if delivery == "Y":
- price1 = price + (price * 0.2)
- elif restourant == "Sushi Time":
- price = count * 5.19
- if delivery == "Y":
- price1 = price + (price * 0.2)
- elif restourant == "Sushi Bar":
- price = count * 4.75
- if delivery == "Y":
- price1 = price + (price * 0.2)
- elif restourant == "Asian Pub":
- price = count * 5.50
- if delivery == "Y":
- price1 = price + (price * 0.2)
- elif restourant != "Sushi Zone" or restourant != "Sushi Time" or restourant != "Sushi Bar" or restourant != "Asian Pub":
- print(f"{restourant} is invalid restaurant!")
- exit(0)
- if delivery == "Y":
- price1 = price + (price * 0.2)
- print(f"Total price: {math.ceil(price1)} lv.")
- else:
- print(f"Total price: {math.ceil(price)} lv.")
Add Comment
Please, Sign In to add comment