Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how do you create a countdown using turtle python

#import this
from turtle import *
from time import *
#create the turtle
count = Turtle()
count.speed(0)
count.penup()
count.goto(0,260)
count3=0

#this is the loop
for count2 in range(3):#replace the 3 with the number you want to count from
    count3 = 3 - count2
    count.clear()
    count.write(count3, align="center", font=("arial", 24, "normal"))
    sleep(1)
 
PREVIOUS NEXT
Tagged: #create #countdown #turtle #python
ADD COMMENT
Topic
Name
7+8 =