Documentation
Source code in type-of-triangle/main.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | |
triangleType(nums)
Determine the type of triangle that the three side lengths form.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
nums
|
List[int]
|
A list of three integers representing side lengths. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
One of "none", "equilateral", "isosceles", or "scalene". |
Source code in type-of-triangle/main.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | |