Skip to content
Snippets Groups Projects
Commit 95a652be authored by LAKRIB El djouher's avatar LAKRIB El djouher
Browse files

question3

parent c12b212d
Branches
No related tags found
No related merge requests found
Class TabletteChocolat:
d e f __init__ ( s e l f , m,n ) :
s e l f . m = m
self.n=n
d e f __str__ ( s e l f ) :
r e t u r n s t r ( s e l f . m*n )+ °
i f __name__ == __main__ :
t= TabletteChocolat
p r i n t ( t )
d e f __repr__ ( s e l f ) :
r e t u r n " m*n" + s t r (
s e l f )
if __name__ == __main__ :
t = TabletteChocolat
p r i n t ( t )
\ 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