Skip to content

Commit 557624b

Browse files
authored
Update area.py
Corrected line length
1 parent ecc8d2e commit 557624b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

maths/area.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,8 @@ def surface_area_reg_prism(sides: int, edge: float, height: float) -> float:
620620
>>> surface_area_reg_prism(2, 10, 15)
621621
Traceback (most recent call last):
622622
...
623-
ValueError: surface_area_reg_prism() only accepts integers greater than or equal to \
624-
three as number of sides
623+
ValueError: surface_area_reg_prism() only accepts integers greater than or equal \
624+
to three as number of sides
625625
>>> surface_area_reg_prism(5, -2, 3)
626626
Traceback (most recent call last):
627627
...
@@ -635,8 +635,8 @@ def surface_area_reg_prism(sides: int, edge: float, height: float) -> float:
635635
>>> surface_area_reg_prism(2, -10, 15)
636636
Traceback (most recent call last):
637637
...
638-
ValueError: surface_area_reg_prism() only accepts integers greater than or equal to \
639-
three as number of sides
638+
ValueError: surface_area_reg_prism() only accepts integers greater than or equal \
639+
to three as number of sides
640640
"""
641641
if not isinstance(sides, int) or sides < 3:
642642
raise ValueError(
@@ -681,3 +681,4 @@ def surface_area_reg_prism(sides: int, edge: float, height: float) -> float:
681681
print(f"Square: {area_reg_polygon(4, 10) = }")
682682
print(f"Reqular Pentagon: {area_reg_polygon(5, 10) = }")
683683
print(f"Regular Pentagonal Prism: {surface_area_reg_prism(5, 10, 15) = }")
684+

0 commit comments

Comments
 (0)