Skip to content
Snippets Groups Projects
Commit a18eea31 authored by ALI SAID IDJIHADI Samir's avatar ALI SAID IDJIHADI Samir
Browse files

question8

parent 347d6002
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,15 @@ class TabletteChocolat:
plt.axis('off')
plt.show()
plt.close()
def demender_coup(self):
n=0
x = input("couper des lignes (l) ou des colones (c)")
if x=="c":
while not self.est_possible(0, int(n)):
n = input("combien de colonnes a couper" + str(list(range(1, self.n))))
return self.coup(int(n),0)
else:
raise ValueError("il faut repondre l ou c")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment