# Python – Sympy Triangle.is_scalene() method

• Last Updated : 26 May, 2020
In Sympy, the function `Triangle.is_scalene()` is used to check whether the given triangle is Scalene Triangle or not. Scalene Triangle is the triangle in which all the sides are of different lengths.
```Syntax: Triangle.is_scalene()

Returns:
True: if it is scalene, otherwise False
```

Example #1:

 `# import Triangle, Point``from` `sympy.geometry ``import` `Triangle, Point``  ` `# using Triangle()``t1 ``=` `Triangle(Point(``0``, ``0``), Point(``3``, ``0``), Point(``1``, ``2``))``  ` `# using is_scalene()``isScalene ``=` `t1.is_scalene()``print``(isScalene)`

Output:

`True`

Example #2:

 `# import Triangle, Point``from` `sympy.geometry ``import` `Triangle, Point``  ` `# using Triangle()``t2 ``=` `Triangle(Point(``0``, ``0``), Point(``4``, ``0``), Point(``2``, ``4``))``  ` `# using is_scalene()``isScalene ``=` `t2.is_scalene()``print``(isScalene)`

Output:

`False`

Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.

To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course

My Personal Notes arrow_drop_up