From ee66cd1fb8f2fbff7e2d718972017e2485d84393 Mon Sep 17 00:00:00 2001 From: NOUUUUUUUUHAILAAA Date: Fri, 27 Sep 2024 09:22:18 +0100 Subject: [PATCH] exo1 Making price --- exo1/exo1.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/exo1/exo1.py b/exo1/exo1.py index 3034469..2bb3aab 100644 --- a/exo1/exo1.py +++ b/exo1/exo1.py @@ -7,3 +7,9 @@ Write the code for this class, with the appropriate constructor. Example of code using the class: i = Item(10, 20) """ +class Item: + def __init__(self, price, weight): + self.price = price + self.weight = weight + +