Create main.py
This commit is contained in:
parent
87cc1f77f3
commit
63537fad17
6
Exercice9/main.py
Normal file
6
Exercice9/main.py
Normal file
@ -0,0 +1,6 @@
|
||||
# Test de la classe Rectangle
|
||||
rectangle = Rectangle(5, 3) # 5:width & 3:length
|
||||
print("Largeur:", rectangle.width)
|
||||
print("Longueur:", rectangle.length)
|
||||
print("Aire:", rectangle.calculate_area())
|
||||
print("Périmètre:", rectangle.calculate_perimeter())
|
Loading…
x
Reference in New Issue
Block a user