About 3,190,000 results
Open links in new tab
  1. Finding if a triangle is right-angled or not - Stack Overflow

    May 16, 2019 · To find whether rectangle is right, you can exploit Pythagorean theorem. def right_angled(a, b, c): if (a*a+b*b==c*c) or (c*c+b*b==a*a) or (a*a+c*c==b*b) : return "The …

  2. Python Program to Check if right triangle possible from given

    Sep 5, 2024 · The numpy.hypot() function is used to get the hypotenuse of the given legs. This function takes two arguments and returns the hypotenuse side assuming those arguments to …

  3. 5 Best Ways to Check Whether a Right Angled Triangle Is Valid …

    Mar 8, 2024 · Functional specification: is_valid_triangle(side1, side2, side3) returns True if the sides form a valid right-angled triangle and False otherwise. Here’s an example: def …

  4. Python: Check whether three given lengths of three sides form a right

    Apr 17, 2025 · Check whether the sorted sides form a Pythagorean triple (right-angled triangle) using the Pythagorean theorem. Prints 'Yes' if the sides satisfy the Pythagorean theorem, …

  5. Python program to print a right angled triangle - CodeVsColor

    Sep 1, 2021 · In this tutorial, we will learn how to print one right-angled triangle using python 3. A triangle is called a right-angled triangle if it’s one angle is of 90 degrees or right angle . The …

  6. Find the type of triangle with given sides in Python

    In this article, we will learn how to find the type of triangle with given sides in Python. Let a, b, c represent the sides of the triangle. Examples. In general, if. c² = a² + b² then the triangle is a …

  7. python - check if it is a Right angled triangle - Stack Overflow

    Given three integers a, b and c as triplets. The task is to check if it is possible to make right angled triangle or not. The first line of input contains an integer T denoting the number of test …

  8. Check Validity of Right-Angled Triangle for Large Sides in Python

    Jan 16, 2021 · Learn how to check whether a right-angled triangle is valid or not for large sides using Python. Follow our step-by-step guide and examples.

  9. Check if a right-angled triangle can be formed by the given coordinates

    Nov 21, 2022 · The idea is to use the Pythagoras Theorem to check if a right-angled triangle is possible or not. Calculate the length of the three sides of the triangle by joining the given …

  10. Check Right-Angled Triangle - CodePal

    Check if a triangle is right-angled using a Python function. The function uses the Pythagorean theorem to determine if the triangle is right-angled.

Refresh