About 1,480,000 results
Open links in new tab
  1. Turtle Graphics with loops - Python Classroom

    Mar 30, 2019 · Loops are used when you have a block of code that you want to repeat. A for loop is used when you have a block of code which you want to repeat a fixed number of times. The …

  2. Use a while loop to control game in Python turtle

    Jan 9, 2019 · I am trying to use a while loop so that I can stop the game as soon as the finish line is crossed. We can test if a turtle's .xcor() value is greater than the x coordinate of the finish …

  3. Creating Loops With Python Turtle: A Beginner's Guide

    Nov 13, 2024 · To create a while loop in Python Turtle, you can use the following code structure: ```python. from turtle import Turtle. Initialize the turtle. turtle = Turtle() Define a condition for the …

  4. Drawing with turtle module and while loops in Python 3

    Oct 8, 2021 · I'm trying to get this code to request an input: number of points on a star, then use the turtle module to draw each respective star. Each one is meant to be in a distinct location …

  5. python turtle loop - Stack Overflow

    import turtle bob = turtle.Turtle() wn = turtle.Screen() bob.color("white") bob.speed(1000000000000000000000000) wn.bgcolor("black") x=1 while x < 10000000: …

  6. Creative Coding: An Introduction to Loops with Turtle - The …

    Jan 24, 2024 · In Python, loops are like a superpower for doing repetitive tasks without repeatedly writing the same line of code. We'll focus on two main types of loops: for loops and while …

  7. 2.8 WHILE LOOPS - programmierkonzepte.ch

    The turtle should draw 10 connected houses using a while loop. The houses are numbered from 1 to 10. The houses with the numbers 4-7 are large, and all of the other houses are small. In the …

  8. Python Turtle Tutorial - Lesson 6 - While loops - YouTube

    This sixth lesson in the Python Turtle tutorial series shows you how to repeat sections of your code using 'while loops'. Loops make your code more efficient...

  9. Python Turtle for beginners - Code Underscored

    Aug 25, 2021 · Here’s some simple Python turtle code to help you create your first design. It’s nothing fancy, but the goal is to decipher the code and determine what it accomplishes. First, …

  10. Python Turtle Graphics -Use of While loop - YouTube

    Python Turtle Graphics. Very Easy Code, anyone can understand it. Use of While loop. Easy to draw with a single while loop.

Refresh