Skip to content
Snippets Groups Projects
Commit 06267034 authored by Leo Litaize's avatar Leo Litaize
Browse files

Question 1

parent 93e3e1f1
No related branches found
No related tags found
No related merge requests found
...@@ -2,3 +2,10 @@ class TabletteChocolat: ...@@ -2,3 +2,10 @@ class TabletteChocolat:
def __init__(self, m, n): def __init__(self, m, n):
self.m=m self.m=m
self.n=n self.n=n
try:
self.m==int and self.n==int
except :
raise TypeError("Rentrer des entiers")
a=TabletteChocolat(5.5,1)
print(a)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment