def triangle(a, b, c):
    # DELETE 'PASS' AND WRITE THIS CODE
    pass

# Error class used in part 2.  No need to change this code.
class TriangleError(Exception):
    pass

def triangle(a, b, c):
    # DELETE 'PASS' AND WRITE THIS CODE
    # pass
    if a == b == c:
        return 'equilateral'
    elif a == b or a == c or b == c:
        return 'isosceles'
    else:
        return 'scalene'

# Error class used in part 2.  No need to change this code.
class TriangleError(Exception):
    pass

Complete 'About Triangle Project' koans
[Python] Complete 'About Triangle Project' koans

  def triangle(a, b, c):
      # DELETE 'PASS' AND WRITE THIS CODE
-     pass
+     # pass
+     if a == b == c:
+         return 'equilateral'
+     elif a == b or a == c or b == c:
+         return 'isosceles'
+     else:
+         return 'scalene'
  
  # Error class used in part 2.  No need to change this code.
  class TriangleError(Exception):
      pass
  
Complete 'About Triangle Project' koans
## Code Before:
def triangle(a, b, c):
    # DELETE 'PASS' AND WRITE THIS CODE
    pass

# Error class used in part 2.  No need to change this code.
class TriangleError(Exception):
    pass

## Instruction:
Complete 'About Triangle Project' koans
## Code After:
def triangle(a, b, c):
    # DELETE 'PASS' AND WRITE THIS CODE
    # pass
    if a == b == c:
        return 'equilateral'
    elif a == b or a == c or b == c:
        return 'isosceles'
    else:
        return 'scalene'

# Error class used in part 2.  No need to change this code.
class TriangleError(Exception):
    pass
