Skip to content
Snippets Groups Projects
Commit 60f83544 authored by VILLA Jonathan's avatar VILLA Jonathan
Browse files

question 3 13h55

parent ade097ce
No related branches found
No related tags found
No related merge requests found
...@@ -7,9 +7,9 @@ class TabletteChocolat: ...@@ -7,9 +7,9 @@ class TabletteChocolat:
assert (self.m==int(self.m) and self.n==int(self.n)) assert (self.m==int(self.m) and self.n==int(self.n))
except: except:
return(ValueError) return(ValueError)
def __str__(self):
return('Tablette de chocolat de ' + str(self.m) + 'x' + str(self.n))
T1=TabletteChocolat(1,2) T1=TabletteChocolat(1,2)
T2=TabletteChocolat(1.5,7) T2=TabletteChocolat(1.5,7)
T=T1.typage
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment