About 138,000 results
Open links in new tab
  1. Produce Overlapping Triangles Using Python Turtle

    Mar 12, 2015 · Turn left/right the correct amount of degrees (that's really for you to figure out) and repeat the code you already have to draw another triangle. Below is a complete solution based …

  2. Python Turtle Triangle + Examples - Python Guides

    Oct 27, 2021 · Python turtle triangle. In this section, we will learn how to draw a triangle in a Python turtle. A triangle has three edges and three vertices. It is a closed, two-dimensional …

  3. Turtle Graphics with loops - Python Classroom

    Mar 30, 2019 · To start, let's try some basic designs without loops. To add color to your design, wrap the following lines of code before and after the turtle movements. turtle.pencolor ("red") # …

  4. 8. Turtle triangle progressions — PC-Python - Read the Docs

    Turtle t. speed (5) # --begin triangle def scalene (t, side_a, angle_C, side_b, start_pos = (0, 0), start_h = 0, penw = 1, penc = "black", fillc = None): t. pu t. goto (start_pos) t. pd t. seth …

  5. turtleTurtle graphics — Python 3.13.3 documentation

    2 days ago · Turtle can draw intricate shapes using programs that repeat simple moves. In Python, turtle graphics provides a representation of a physical “turtle” (a little robot with a pen) …

  6. Control shape overlap in Python's turtle? - Stack Overflow

    I am writing a program that takes user input for (1) number of sides of the shape to be drawn, (2) how large to draw it, (3) how many to draw, and (4) how many colors to use. The turtle then …

  7. 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 …

  8. 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 …

  9. python - Sierpinski turtle triangle - Code Review Stack Exchange

    Aug 9, 2019 · import turtle def draw_polygon(a_turtle, length, sides): counter = 0 while (counter < sides): a_turtle.forward(length) a_turtle.right(360 / sides) counter = counter + 1 def …

  10. 17.6. Teacher Note: Turtle Geometry — Python for Everybody

    The following program uses a turtle to draw a triangle as shown below, but the lines are mixed up. The program should do all necessary set-up and create the turtle. After that, iterate (loop) 3 …

  11. Some results have been removed
Refresh