Create main.py

This commit is contained in:
PeterGuek 2024-07-19 20:50:52 -07:00 committed by GitHub
parent 87cc1f77f3
commit 63537fad17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

6
Exercice9/main.py Normal file
View 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())