Python | BEATS 100% | Simple If-else 
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->



# Code
![asd1.png](https://assets.leetcode.com/users/images/4703f775-1ed4-4a61-885e-55666247ace7_1743224734.4317865.png)


```python3 []
class Solution:
    def triangleType(self, nums: List[int]) -> str:
        
        if nums[0] + nums[1] <= nums[2] or nums[0] + nums[2] <= nums[1] or nums[1] + nums[2] <= nums[0]:
            return "none"
        else:
            if nums[0] == nums[1] == nums[2]:
                return "equilateral"

            if nums[0] == nums[1] or nums[1] == nums[2] or nums[0] == nums[2]:
                    return "isosceles"
            else:
                return "scalene"

```
['Python3']