Rename main.py to main.py
This commit is contained in:
6
Exercice09/main.py
Normal file
6
Exercice09/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())
|
||||
Reference in New Issue
Block a user