Skip to content
Snippets Groups Projects
Commit 2edd71d8 authored by COULIBALY Gie drissa's avatar COULIBALY Gie drissa
Browse files

Update file main.py

parent f6696ce9
No related branches found
No related tags found
No related merge requests found
......@@ -6,12 +6,19 @@ class TabletteChocolat:
return str(self.m*self.n)
def __repr__(self):
return ("Tablette de chocolat de" str(self))
def __coups_possibles__(self):
for p in range(m)
return i in tuple(p,0)
or
return i in tuple(0,p)
except:
raise TypeError(int(self.m),int(self.n))
t=TabletteChocolat(3,4)
g=t.coups_possibles()
print(t)
print(list(g))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment