About 2,350,000 results
Open links in new tab
  1. Calculate the Area of a Triangle - Python - GeeksforGeeks

    Apr 29, 2025 · In this article, we will see how we can calculate the area of a triangle in Python. When the lengths of all three sides of the triangle are known, you can use Heron's Formula. …

  2. Python Program to Calculate the Area of a Triangle

    In this program, area of the triangle is calculated when three sides are given using Heron's formula. If you need to calculate area of a triangle depending upon the input from the user, …

  3. How to Find the Area of the Triangle in Python - Python Guides

    May 29, 2024 · The area of a triangle is the space enclosed by three sides, and there is a basic formula to find the location of a triangle 1/2 * base * height. Another formal is Heron’s formula, …

  4. Python Programs to Calculate Area of Triangle - PYnative

    Apr 17, 2025 · Formula to Calculate the Area of a Triangle: Area = 1 ⁄ 2 × Base × Height. Base (b) = Any side of the triangle used as a reference. Height (h) = The perpendicular distance from …

  5. Python Program to find Area Of a Triangle - Tutorial Gateway

    If we know the length of three sides of a triangle, then we can calculate the area of a triangle using Heron’s Formula. Area of a Triangle = √(s*(s-a)*(s-b)*(s-c)) Where s = (a + b + c )/ 2 …

  6. Area of Triangle Using Heron's Formula in PYTHON

    Calculate the area of a triangle when all the three sides are known using Heron's Formula in Python.

  7. Find the Area of a Triangle In Python – allinpython.com

    Formula for Area of a Triangle. The formula is: area = sqrt(s * (s-a) * (s-b) * (s-c)) where “s” is the semi-perimeter of the triangle. “a“, “b“ and “c“ are the lengths of the triangle’s sides. Formula …

  8. Calculate the Area of a Triangle using Python - Online Tutorials …

    If you have the base and height of the triangle, you can use the following code to get the area of the triangle, def get_area(base, height): return 0.5 * base * height print(get_area(10, 15)) This …

  9. Python Program To Calculate The Area Of A Triangle - Python

    We can calculate the area of a triangle by multiplying the base and height of the triangle and dividing the result by 2. Here’s a Python program that uses this formula: # Calculate the area …

  10. Python: How to calculate area of a triangle in Python?

    Apr 16, 2025 · Write a script that calculates the area of a triangle using Heron's formula. Write a Python function that determines if three given sides can form a valid triangle. Write a program …

  11. Some results have been removed
Refresh