Олимпиадный тренинг

Задача 37526. Area of ​​a triangle


Задача

Темы: NumPy
A triangle on a plane is given by the coordinates of its vertices. The vertex coordinates are stored as vectors A1, A2, A3. Each vector contains two coordinates of the corresponding vertex (x, y)
Find the area of ​​the triangle.
If all three vertices lie on the same line, then the area is 0.
 
Запрещенные операторы:for;while;do;until