Skip to content

Commit 610e687

Browse files
committed
Completed about_triangle_project.py
1 parent ed699f8 commit 610e687

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

python2/koans/triangle.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@
1818
# about_triangle_project_2.py
1919
#
2020
def triangle(a, b, c):
21-
# DELETE 'PASS' AND WRITE THIS CODE
22-
pass
21+
if a == b == c:
22+
return 'equilateral'
23+
if a == b or b == c or a == c:
24+
return 'isosceles'
25+
return 'scalene'
2326

2427

2528
# Error class used in part 2. No need to change this code.

0 commit comments

Comments
 (0)