About 547,000 results
Open links in new tab
  1. 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 …

  2. 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. if (a*a+b*b==c*c) or (c*c+b*b==a*a) or (a*a+c*c==b*b) : return "The triangle is right-angled." …

  3. Drawing a right triangle (Python 3) - Stack Overflow

    Mar 30, 2017 · I'm trying to make this program output a right triangle based on the height and symbol that is specified by the user, but whenever I enter the symbol and height desired the …

  4. python - how to use for loop to create right angled triangle?

    Oct 11, 2016 · As a general rule of thumb, whenever you know exactly how many times you should do something, you should use a for loop instead of a while loop. Let's try to rewrite you …

  5. Print a right triangle pattern in Python - kodeclik.com

    Learn how to print right-angled triangle patterns in Python using loops, string manipulation, and recursion approaches.

  6. Print right angle triangle in Python - CodeSpeedy

    To print the right-angled triangle in Python, we can take the input from the user for the length of the triangle. x=int(input("Enter row number=\n")) for i in range(x): for j in range(i+1): …

  7. Python Programs to Print Patterns – Print Number, Pyramid, Star ...

    Sep 3, 2024 · This Python lesson includes over 35+ coding programs for printing Numbers, Pyramids, Stars, triangles, Diamonds, and alphabet patterns, ensuring you gain hands-on …

  8. Python Program to Check if right triangle possible from given …

    Sep 5, 2024 · In this article, we’ll provide the right triangle’s legs and use Python to get the triangle’s hypotenuse. We are going to solve this problem with the help of Pythagoras’ …

  9. Python: Calculate the hypotenuse of a right angled triangle

    Apr 16, 2025 · Write a Python program to determine if three given side lengths form a right-angled triangle. Write a Python program to compute the hypotenuse using an alternative formula that …

  10. How to draw right angled triangle with python - Stack Overflow

    Oct 6, 2016 · The problem here is close to that described in Basic trigonometry isn't working correctly in python. The turtle module uses degrees for angles, the math module uses radians. …

Refresh