Skip to content
Snippets Groups Projects
Commit 98a9f825 authored by BAHOU Mehdi's avatar BAHOU Mehdi
Browse files

Question 2

parent 4c4d506d
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,8 @@ class TabletteChocolat: ...@@ -8,6 +8,8 @@ class TabletteChocolat:
n : nombres de colonnes int n : nombres de colonnes int
""" """
def __init__(self, m, n): def __init__(self, m, n):
if type(m) != int or type(n) != int:
raise TypeError
self.m = m self.m = m
self.n = n self.n = n
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment