___________ class Item: def __init__(self, name, price, quantity): self.name = name self.price = price self.quantity = quantity def calculate_total_price: self.price = self.price * self.quantity def apply_discount *self, discount): self.price = self.price - (self.price * discount / 100) ________ Shuningdek, agar siz Iteam sinfini narx va miqdor maydoni bilan ta'riflab, narx maydonini birlik narxni ifodalashiga ruxsat bersangiz, ushbu funksiyalardan biri bilan o'zgartirganingizda, siz ushbu boshlang'ich qiymatni yo'qotasiz. Masalan, agar siz "narx" maydonining qiymatini o'zgartirmasdan, funksiya qiymat qaytarishini amalga oshirsangiz, quyidagicha: __________ def = nom = nom self.price
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence