Skip to content
Snippets Groups Projects
Commit 9c3c964e authored by KERAOUCHE Sara's avatar KERAOUCHE Sara
Browse files

question 1 , 2 , 3

parent ee2e3e8e
No related branches found
No related tags found
No related merge requests found
class tabelettechocolat:
def __init__(self,m,n):
if not isinstance(m, int) or not isinstance(n,int) or m <= 0 or n <= 0:
raise TypeError ("les enties doivent etre entier posistif ")
self.m=m
self.n=n
t = tabelettechocolat(4,3)
print(t) #tabelette de chocolat de 4*3
repr(t) #tablette de chocolat (4,3)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment