#140EasyConditionals· Combining Conditions
Triangle Classifier
Input format
`a`, `b`, `c`: integers.
Output format
One of `"invalid"`, `"equilateral"`, `"isosceles"`, `"scalene"`.
Examples
Input: a = 3, b = 4, c = 5
Output: "scalene"
All different, and every side is shorter than the other two together.
Input: a = 1, b = 2, c = 3
Output: "invalid"
1 + 2 is not greater than 3: the sides would lie flat.
Constraints
- -1000 <= a, b, c <= 1000
Study first
- #python
- #conditionals
- #logical-operators
- #geometry
