MCPcopy
hub / github.com/qiwsir/StarterLearningPython / sorted_sides

Function sorted_sides

newcodes/answers/q50.py:5–8  ·  view source on GitHub ↗
(sides_lst)

Source from the content-addressed store, hash-verified

3import math
4
5def sorted_sides(sides_lst):
6 sides = sorted(sides_lst)
7 x, y, z = sides[0], sides[1], sides[2]
8 return float(x), float(y), float(z)
9
10def is_triangle(sides_lst):
11 x, y, z = sorted_sides(sides_lst)

Callers 4

is_triangleFunction · 0.85
side_triangleFunction · 0.85
angle_triangleFunction · 0.85
area_triangleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected