Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- type_of_sushi = input()
- restaurant_name = input()
- portions = int(input())
- delivary = input()
- sum = 0
- percent = 0
- is_restaurant_name = False
- if type_of_sushi == 'sashimi':
- if restaurant_name == 'Sushi Zone':
- sum = portions * 4.99
- is_restaurant_name = True
- if delivary == 'Y':
- sum += sum * 0.2
- if restaurant_name == 'Sushi Time':
- sum = portions * 5.49
- is_restaurant_name = True
- if delivary == 'Y':
- sum += sum * 0.2
- if restaurant_name == 'Sushi Bar':
- sum = portions * 5.25
- is_restaurant_name = True
- if delivary == 'Y':
- sum += sum * 0.2
- if restaurant_name == 'Asian Pub':
- sum = portions * 4.50
- is_restaurant_name = True
- if delivary == 'Y':
- sum += sum * 0.2
- if type_of_sushi == 'maki':
- if restaurant_name == 'Sushi Zone':
- sum = portions * 5.29
- is_restaurant_name = True
- if delivary == 'Y':
- sum += sum * 0.2
- if restaurant_name == 'Sushi Time':
- sum = portions * 4.69
- is_restaurant_name = True
- if delivary == 'Y':
- sum += sum * 0.2
- if restaurant_name == 'Sushi Bar':
- sum = portions * 5.55
- is_restaurant_name = True
- if delivary == 'Y':
- sum += sum * 0.2
- if restaurant_name == 'Asian Pub':
- sum = portions * 4.80
- is_restaurant_name = True
- if delivary == 'Y':
- sum += sum * 0.2
- if type_of_sushi == 'uramaki':
- if restaurant_name == 'Sushi Zone':
- sum = portions * 5.99
- is_restaurant_name = True
- if delivary == 'Y':
- sum += sum * 0.2
- if restaurant_name == 'Sushi Time':
- sum = portions * 4.49
- is_restaurant_name = True
- if delivary == 'Y':
- sum += sum * 0.2
- if restaurant_name == 'Sushi Bar':
- sum = portions * 6.25
- is_restaurant_name = True
- if delivary == 'Y':
- sum += sum * 0.2
- if restaurant_name == 'Asian Pub':
- sum = portions * 5.50
- is_restaurant_name = True
- if delivary == 'Y':
- sum += sum * 0.2
- if type_of_sushi == 'temaki':
- if restaurant_name == 'Sushi Zone':
- sum = portions * 4.29
- is_restaurant_name = True
- if delivary == 'Y':
- sum += sum * 0.2
- if restaurant_name == 'Sushi Time':
- sum = portions * 5.19
- is_restaurant_name = True
- if delivary == 'Y':
- sum += sum * 0.2
- if restaurant_name == 'Sushi Bar':
- sum = portions * 4.75
- is_restaurant_name = True
- if delivary == 'Y':
- sum += sum * 0.2
- if restaurant_name == 'Asian Pub':
- sum = portions * 5.50
- is_restaurant_name = True
- if delivary == 'Y':
- sum += sum * 0.2
- if is_restaurant_name == True:
- print(f'Total price: {math.ceil(sum)} lv. ')
- else:
- print(f'{restaurant_name} is invalid restaurant!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement