Fix: Ensure all skills are tracked as files, not submodules
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
def right_angle_triangle(a, b, c):
|
||||
'''
|
||||
Given the lengths of the three sides of a triangle. Return True if the three
|
||||
sides form a right-angled triangle, False otherwise.
|
||||
A right-angled triangle is a triangle in which one angle is right angle or
|
||||
90 degree.
|
||||
Example:
|
||||
right_angle_triangle(3, 4, 5) == True
|
||||
right_angle_triangle(1, 2, 3) == False
|
||||
'''
|
||||
sides = sorted([a, b, c])
|
||||
return sides[0]**2 + sides[1]**2 == sides[2]**2
|
||||
Reference in New Issue
Block a user