Skip to content
Snippets Groups Projects
Commit 626b4c1c authored by rachida0001's avatar rachida0001
Browse files

question 3

parent 6632ffde
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,11 @@ class TabletteChocolat:
self.m = m
self.n = n
def __str__(self):
return "Tablette de chocolat de "+str(self.m)+"x"+str(self.n)
def __repr__(self):
return "Tablette de chocolat de "+str(self.n)+"x"+str(self.m)
if __name__ == "__main__":
import doctest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment