hc = (2 * (a ** 2 * b ** 2 + b ** 2 * c ** 2 + c ** 2 * a ** 2) - (a ** 4 +
    b ** 4 + c ** 4)) ** 0.5 / (2.0 * c)
dx = (b ** 2 - hc ** 2) ** 0.5
if abs((c - dx) ** 2 + hc ** 2 - a ** 2) > 0.01:
    dx = -dx
C = dx, hc
coords = [int((x + 1) * 75) for x in A + B + C]
root = Tk()
canvas = Canvas(root, width=500, height=300)
canvas.create_polygon(*coords)
canvas.pack()
root.mainloop()
draw(2, 4, 5)
How to create a Triangle shaped drawing from my variables in Python