From 95a652be1a0cbe9c55c832154abc33ba56c55929 Mon Sep 17 00:00:00 2001
From: LAKRIB El djouher <l22032598@V-PP-02-nux-032.salsa.univ-amu.fr>
Date: Fri, 10 Jan 2025 14:53:51 +0100
Subject: [PATCH] question3

---
 question3.py | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/question3.py b/question3.py
index e69de29..f0f52e8 100644
--- a/question3.py
+++ b/question3.py
@@ -0,0 +1,19 @@
+Class TabletteChocolat:
+ d e f __init__ ( s e l f , m,n ) :
+ s e l f . m = m
+ self.n=n
+ d e f __str__ ( s e l f ) :
+ r e t u r n s t r ( s e l f . m*n )+ ’ ° ’
+
+ i f __name__ == ’__main__ ’ :
+ t= TabletteChocolat
+ p r i n t ( t ) 
+
+
+d e f __repr__ ( s e l f ) :
+ r e t u r n " m*n" + s t r (
+s e l f )
+
+if  __name__ == ’__main__ ’ :
+t = TabletteChocolat
+ p r i n t ( t ) 
\ No newline at end of file
-- 
GitLab