Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to count down in python using turtle graphics

#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: #count #python #turtle #graphics
ADD COMMENT
Topic
Name
3+9 =