From ddb105a19830140163b2a9abeab2717ddd2ac866 Mon Sep 17 00:00:00 2001
From: COULIBALY Gie drissa <gie-drissa.coulibaly@etu.univ-amu.fr>
Date: Fri, 10 Jan 2025 13:28:28 +0000
Subject: [PATCH] Update file main.py

---
 main.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/main.py b/main.py
index da21ea3..ba7f1ac 100644
--- a/main.py
+++ b/main.py
@@ -2,7 +2,13 @@ class TabletteChocolat:
     def __init__(self,m,n):
         self.m=m
         self.n=n
+    def __str__(self):
+        return str(self.m*self.n)
+    def __repr__(self):
+        return ("Tablette de chocolat de" str(self))
 
+t=TabletteChocolat(3,4)
+print(t)
         except:
             raise TypeError(int(self.m),int(self.n))
 
-- 
GitLab