Is there a shorter/more pythonic way of writing the 2nd line of this python code?
def triangle(side1, side2, side3): if side1 >= side2 + side3 or side2 >= side3 +side1 or side3 >= side1 + side2: return ‘Not a triangle’ elif side1 == side2 == side3: return ‘Equilateral’ elif side1 != side2 != side3: return ‘Scalene’ return ‘Isosceles’ The code works fine, but I’m wondering if there’s a more efficient […]