-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpizza.py
More file actions
40 lines (32 loc) · 1014 Bytes
/
Copy pathpizza.py
File metadata and controls
40 lines (32 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# -*- coding: utf-8 -*-
"""
Created on Sun May 5 16:30:57 2024
@author: SÜLEYMAN BEYYY
"""
def pizza():
preference = input('Press "S" key for small size, "M" key for medium size, "L" key for large size.\n->')
extraCheese = input('Press the "Y" key if you want extra cheese, or the "N" key if you don\'t.\n->')
extraDrink = input('If you want an extra drink, press the "Y" key, if not, press the "N" key.')
fee = 0
small = 25
medium = 30
large = 35
drink = 2
if extraCheese == 'Y':
if preference == 'S':
fee = small+2
elif preference == 'M':
fee = medium+3
else:
fee = large+3
else:
if preference == 'S':
fee = small
elif preference == 'M':
fee = medium
else:
fee = large
if extraDrink == "Y":
fee += drink
print('Fee you need to pay: ',fee)
pizza()