Skip to content

Commit b21e11b

Browse files
Added output imgs and folder reorganisation
1 parent 010a063 commit b21e11b

26 files changed

+4
-3
lines changed

_1/output_1.jpg

78.4 KB
Loading

_1/output_2.jpg

68 KB
Loading

ques_1.py renamed to _1/ques_1.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ def calculate(side1, side2, side3):
55
area = 0
66
# Check if input forms a triangle
77
if side1 + side2 > side3 and side2 + side3 > side1 and side1 + side3 > side2:
8-
print("Given sides form aa triangle.")
8+
print("Given sides form a triangle.")
99
perimeter = side1 + side2 + side3
1010
s = perimeter/2
1111
area = math.sqrt(s*(s-side1)*(s-side2)*(s-side3))
1212
else:
1313
print("ERR: Given sides does not form a triangle.")
1414
print("[Sum of two sides of a triangle should be greater than the third]")
15+
quit()
1516
return perimeter, area
1617

1718
if __name__ == "__main__":

_2/output.jpg

79.1 KB
Loading
File renamed without changes.

_3/output.jpg

42 KB
Loading
File renamed without changes.

_4/output_1.jpg

35.9 KB
Loading

_4/output_2.jpg

33.5 KB
Loading
File renamed without changes.

0 commit comments

Comments
 (0)