PYTHON zadacha 3 :SUSHI TIME ....SAMPLE EXAM
nqkoi ima li reshenieto na tazi zadacha s python kod
nqkoi ima li reshenieto na tazi zadacha s python kod
import math
kind_sushi = input()
restaurant = input()
order = int(input())
home = input()
price = 0
if restaurant == "Sushi Zone" or restaurant == "Sushi Time" or restaurant == "Sushi Bar" or restaurant == "Asian Pub":
if restaurant == "Sushi Zone":
if kind_sushi == "sashimi":
price = order * 4.99
elif kind_sushi == "maki":
price = order * 5.29
elif kind_sushi == "uramaki":
price = order * 5.99
else:
price = order * 4.29
elif restaurant == "Sushi Time":
if kind_sushi == "sashimi":
price = order * 5.49
elif kind_sushi == "maki":
price = order * 4.69
elif kind_sushi == "uramaki":
price = order * 4.49
else:
price = order * 5.19
elif restaurant == "Sushi Bar":
if kind_sushi == "sashimi":
price = order * 5.25
elif kind_sushi == "maki":
price = order * 5.55
elif kind_sushi == "uramaki":
price = order * 6.25
else:
price = order * 4.75
else:
if kind_sushi == "sashimi":
price = order * 4.50
elif kind_sushi == "maki":
price = order * 4.80
elif kind_sushi == "uramaki":
price = order * 5.50
else:
price = order * 5.50
else:
print(f"{restaurant} is invalid restaurant!")
if home == "Y":
price += 0.2 * price
if price > 0:
print(f"Total price: {math.ceil(price)} lv.")