About 68,300 results
Open links in new tab
  1. How to Draw a triangle shape in python? - Stack Overflow

    Apr 22, 2014 · I want to draw the shape of a triangle using python. I have already drawn the shape of circle but I cannot draw the triangle. Could someone please help me with this? This is my code for …

  2. python - What is the easiest way to make a triangles - Stack Overflow

    Jul 28, 2021 · pygame.quit() _exit(); window.fill((255, 255, 255)) #draw the triangles drawTriangle(mytriangle1) drawTriangle(mytriangle2) drawTriangle(mytriangle3) …

  3. How to make a triangle of x's in python? - Stack Overflow

    def triangle(n): for i in range(1, n +1): print ('x' * i).rjust(n, ' ') output for triangle(5): x xx xxx xxxx xxxxx Dont just copy this code without comprehending it, try and learn how it works. Usually good ways to …

  4. python - How to draw right side up triangle recursively with ONE ...

    May 2, 2022 · Write a recursive function called draw_triangle () that outputs lines of *'s to form a right side up isosceles triangle. Function draw_triangle () has one parameter, an integer representing the …

  5. python 3.x - How to draw a triangle using matplotlib.pyplot based on 3 ...

    Jun 6, 2017 · How to draw a triangle using matplotlib.pyplot based on 3 dots (x,y) in 2D? Asked 8 years, 6 months ago Modified 8 years, 6 months ago Viewed 53k times

  6. How to print a Triangle Pyramid pattern using a for loop in Python ...

    How to print a Triangle Pyramid pattern using a for loop in Python? Asked 6 years, 11 months ago Modified 2 years, 9 months ago Viewed 25k times

  7. python - Draw Triangle by turtle - Stack Overflow

    Jun 23, 2020 · I am a beginner to python and found a code to draw triangle by Turtle as below code

  8. How to create a Triangle shaped drawing from my variables in Python

    Oct 7, 2013 · The problem was : Given 3 numbers determine if they can form a triangle and if yes calculate the Perimeter and Area,draw the Triangle afterwards. I have managed to calculate the …

  9. python - Sierpinski triangle recursion using turtle graphics - Stack ...

    Oct 17, 2016 · I am trying to write a program that draws a sierpinski tree with python using turtle. Here is my idea: import turtle def draw_sierpinski(length,depth): window = turtle.Screen() t = turtle....

  10. drawing a triangle with lines across using python turtle

    Jul 7, 2020 · 0 I am still learning and trying to draw a triangle with lines across from bottom to top, but am having a terrible time figuring it out. I am able to pick the turtle up and move it drawing slightly …