#__author__=lx #__date__=2011-11-02 def triangle( a, b, c ): if a + b > c and a + c > b and b + c > a : if a != b and a != c and b !=c : print "Ordinary triangle" else : if a == b and a == c: print "Equilateral triangle" else: print "Isosceles triangle" else: print "Non-triangular" if __name__ == "__main__": triangle( 3, 1, 2 )