Last active
July 11, 2023 07:41
-
-
Save Aniq55/24fe33a67328e2bd7b8391f89094590e to your computer and use it in GitHub Desktop.
SRSI Day 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
currencies = {'USD': 1, 'SAR': 3.75, 'GBP': 0.78, 'AED': 3.67} | |
size_standard = {'SML': ['S', 'M', 'L', 'XL'], | |
'US': ['2-4', '6-8', '10-12', '14'], | |
'UK': ['6-8', '10-12', '14-16', '18'], | |
'IT': ['38-40', '42-44', '46-48', '50']} | |
clothing_types = ['shirt', 'trousers', 'accessory', 'skirt', 'blouse', 'jacket'] | |
class Clothing: | |
def __init__(self, cloth_size, color_fav, country, brand, price, cloth_type): | |
self.cloth_size = cloth_size # tuple: ('SML', 'L'). | |
self.origin = country # country code 'PRC', 'IN', 'UK' | |
self.brand = brand # a string | |
self.price = price # a list {'price': 20, 'currency': 'USD'} | |
self.cloth_type = cloth_type | |
def get_price(currency): | |
# calculate the price in the input curency | |
pass | |
def get_size(units): | |
# convert size to different countries' standards | |
pass | |
def apply_discount_code(code): | |
# decrease the price of the item based on the discount code | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment