About 3,110,000 results
Open links in new tab
  1. Python Turtle diagonal lines wrong length? - Stack Overflow

    When trying to paint a square with a diagonal line in it, the line is not rendered at the correct length. Code: import turtle i = 0 while i < 4: turtle.forward (100) turtle.left (90) turtle.

  2. python - Using turtle import to print shapes diagonally - Stack Overflow

    Apr 16, 2020 · draw the shape of triangles across the page of increasing size. forward(30 + shapes * 10) left(120) but I can't figure out how to print them in a straight diagonal line …

  3. python - Draw dashed line using turtle graphics - Stack Overflow

    Jun 14, 2023 · You can use this method to draw a dashed line using a specific distance. By changing the <dis> and <size> values you can set the distance and the dash size.

  4. Python Turtle Draw Line - Python Guides

    Nov 11, 2021 · In this tutorial, we will learn about Python turtle draw line and discuss how to draw a Line in Python turtle with examples like Python turtle draw dotted line

  5. [FREE] Using Python turtle, write a program that allows the user …

    Jun 28, 2023 · Using Python turtle, write a program that allows the user to choose whether to draw horizontal, vertical, or diagonal lines. • The user should choose which pattern to draw via …

  6. How to Draw Different Shapes Using a Turtle in Python

    Dec 30, 2024 · In this article, we will explore how to draw different shapes using a turtle in Python. We will cover the basic concepts of Turtle graphics, such as setting up the drawing window …

  7. turtleTurtle graphicsPython 3.13.3 documentation

    2 days ago · Turtle star. 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 …

  8. Learn to Code with Turtle: A Super Fun Adventure! - Meganano

    Apr 18, 2025 · A new window opened called Python Turtle Graphics, and the turtle (represented by an arrowhead similar to a triangle) moved forward and drew a line, and the turtle is now sat …

  9. How to Draw Different Shapes Using a Turtle in Python - MUO

    When drawing turtles in Python, you will first need a canvas, and a turtle object to draw the shapes with. If needed, you can revise some basic Python examples. Create a new file called …

  10. Drawing Lines, Circles, and Polygons with Python Turtle - unRepo

    Python Turtle provides an enjoyable and interactive way to draw lines, circles, and polygons. By importing the turtle module and using simple commands, you can create stunning geometric …

Refresh