Skip to content

Commit

Permalink
Fix rectangle_area calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Envestoren committed Mar 7, 2024
1 parent 422288a commit 7707681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion area.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7707681

Please sign in to comment.