[Python] Write a method TriangleArea [closed]

Discussão em 'Python' iniciado por Stack, Março 21, 2025.

  1. Stack

    Stack Membro Participativo

    I need to write a method TriangleArea inside the class ChallengeClass that calculates the area of a triangle given the coordinates of its three vertices (a, b), (c, d), and (e, f).

    Requirements:

    ✅ Keep class ChallengeClass and def TriangleArea unchanged

    ✅ Do NOT use abs()

    ✅ Write the shortest possible correct code

    Anyone got a clever one-liner for this? Drop your solutions in the comments!

    I on the way to find the shortest way to solve the triangle area

    Continue reading...

Compartilhe esta Página