About 50,100 results
Open links in new tab
  1. Python Turtle Triangle + Examples - Python Guides

    Oct 27, 2021 · In this tutorial, we are going to learn about Python Turtle Triangle. Here we will learn how to create triangles in Python Turtle using some examples.

  2. Making triangles in Python - Stack Overflow

    Sep 18, 2018 · Below is a code I made in Python for our lab activity which makes a triangle. side = input("Input side: ") def triangle(x): print ((x - 1)*" "),"*" asterisk = "*" space = side for i in range(x): asterisk = "**" + asterisk space = (space-1) * " " print space,asterisk triangle(side)

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

    def triangle(n): for i in range(1, n +1): print ' ' * (n - i) + 'x' * i Or even: def triangle(n): for i in range(1, n +1): print ('x' * i).rjust(n, ' ')

  4. How to Draw a Triangle in Python Turtle - Quick Programming …

    How to Draw a Triangle in Python Turtle Python has a simple pen drawing library called turtle. Using simple movement commands, we can draw shapes using the python turtle library.

  5. Python Turtle - Triangle Tutorial - YouTube

    Learn how to code a simple triangle using Python. This is a great video for beginners and intermediates alike.

  6. How to Draw Triangles in Python Turtle (Right Angle, Acute, Obtuse)

    Apr 16, 2022 · In this video, I will be showing you guys how to draw triangles in python turtle. The triangles that we will be going over today will be right angle triangles, acute triangles, and obtuse...

  7. Draw Triangle In Python Using Turtle Module - Pythondex

    Jul 3, 2023 · In this tutorial we will see how to draw a triangle in python turtle, turtle module is a GUI python library which can be used to draw anything from characters, cartoons, shapes and other objects. t.forward(300) . t.left(120) .

  8. How to Draw a Triangle in Python — Quick Guide - Maschituts

    Oct 1, 2023 · Le’ts learn how to draw a triangle in Python. We can easily do that using the turtle module. These are the methods that we will use to create a triangle. Turtle (): It will instantiate a new turtle object. forward (): It takes a number and moves the turtle (pen) by that distance.

  9. How to make Triangle in Python Turtle using onscreenclick?

    Jun 21, 2022 · How to make Triangle in Python Turtle using onscreenclick? “ Turtle ” is a Python feature like a drawing board, which lets us command a turtle to draw all over it! We can use functions like turtle.forward (…) and turtle.right (…) which can move the turtle around.

  10. Python Program For Equilateral Triangle (With Code) - Python

    To code an equilateral triangle in Python, you can use the turtle graphics module. Define a function to draw the equilateral triangle by specifying the side length and angles. Then, call the function with the desired parameters to draw the triangle on the screen.

  11. Some results have been removed
Refresh