From 115dea4df9a2c71a87c0441d78930a32597b0e2a Mon Sep 17 00:00:00 2001 From: Even Storeheier Date: Wed, 6 Mar 2024 22:24:54 +0100 Subject: [PATCH] Fix rectangle_area calculation --- area.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/area.py b/area.py index 2f14685..efb6c5b 100644 --- a/area.py +++ b/area.py @@ -3,7 +3,7 @@ def rectangle_area(length, width): if length < 0 or width < 0: raise ValueError('Length and width must be positive numbers') - return length * width + return length + width def circle_area(radius): if radius < 0: