How to identify type of a triangle (Equilateral, Isosceles and right angled) with just one-line Python statement: First of all, you need to import 'math' python library. Then you put a * after math.