human
Can you show me a Python function to calculate the area of triangles.
assistant
Here is a Python function to calculate the area of triangles

def area(a,b,c):
    """Returns the area of a triangle with sides a, b, and c."""
    s = (a+b+c)/2
    return s*s*(1-(s*s)/((a*a)*(b*b)))**0.5

# Enter the sides of the triangle
a = 1
b = 2
c = 3

# Calling the function
print((area(a,b,c)))

#Example Output

# (6.16138535547228e-16+10.062305898749054j)

#Remember to inspect code for bugs.