About 2,710,000 results
Open links in new tab
  1. Calculate the Area of a TrianglePython | GeeksforGeeks

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

  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 · # Import the math module to use the sqrt function import math # Define a function to calculate the area of a triangle using Heron's formula def calculate_area(a, b, c): # …

  4. Python Programs to Calculate Area of Triangle - PYnative

    Apr 17, 2025 · In this article, we will explore different ways to calculate the Area and Perimeter of a Triangle using Python, with detailed explanations and examples. What is a Triangle? 1. How …

  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. Python Program to Calculate the Area of a Triangle

    Apr 22, 2020 · In this program, we are using Heron’s formula to calculate the area of a triangle. Heron’s formula is one of the most important concepts used to find the area of a triangle when …

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

    Here’s a Python program that uses this formula: # Calculate the area of a triangle using base and height. area = (base * height) / 2. return area. You can run this code on our free Online Python …

  8. Python program to find the area and perimeter of a triangle

    In this tutorial, I will show you how to find the area and perimeter of a triangle in Python. For calculating both area and perimeter, we need the values of the sides of the triangle. So, the …

  9. Python Program to Calculate the Area of a Triangle - Naukri …

    Jan 7, 2025 · In this article, we will learn how to calculate the area of a triangle using Python programming. We will cover the mathematical formula, look into code examples, & explain the …

  10. Python program to find the area of a triangle

    Oct 7, 2019 · Python program to find the area of a triangle. Mathematical formula: Area of a triangle = (s*(s-a)*(s-b)*(s-c))-1/2. Here s is the semi-perimeter and a, b and c are three sides …

  11. Some results have been removed
Refresh