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

question1

parent 9ea1013b
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(3,4)
print(t) #tabelette de chocolat de 3*4
repr(t) #tablette de chocolat (3,4)
\ 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