Skip to content
Snippets Groups Projects
Commit 36fbce54 authored by rachida0001's avatar rachida0001
Browse files

question 8

parent dc8cd55d
Branches
No related tags found
No related merge requests found
......@@ -32,6 +32,16 @@ class TabletteChocolat:
def plot(self):
pass
def demander_coup(self):
rep = input("coup des lignes (l) ou colonnes (c)")
if rep =="l":
i = int(input(f'choisi un nombre de 1 a {self.m} '))
j = 0
else :
j = int(input(f'choisi un nombre de 1 a {self.n} '))
i = 0
return (i,j)
if __name__ == "__main__":
import doctest
doctest.testmod()
\ 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