Draw Clock Using Python Turtle

In this tutorial, we are going to show and explain How to Draw Clock Using Python Turtle. We have added the video tutorial and the source code of the program.

So let us begin with the Draw Clock Using Python Turtle.

 

Video Tutorial: Draw Clock Using Python Turtle.

 

 

Source Code:

 

import turtle
screen=turtle.Screen()
trtl=turtle.Turtle()
screen.setup(620,620)
screen.bgcolor('black')
clr=['red','green','blue','yellow','purple']
trtl.pensize(4)
trtl.shape('turtle')
trtl.penup()
trtl.pencolor('red')
m=0
for i in range(12):
      m=m+1
      trtl.penup()
      trtl.setheading(-30*i+60)
      trtl.forward(150)
      trtl.pendown()
      trtl.forward(25)
      trtl.penup()
      trtl.forward(20)
      trtl.write(str(m),align="center",font=("Arial", 12, "normal"))
      if m==12:
        m=0
      trtl.home()
trtl.home()
trtl.setpos(0,-250)
trtl.pendown()
trtl.pensize(10)
trtl.pencolor('blue')
trtl.circle(250)
trtl.penup()
trtl.ht

 

Output:

 

Draw Clock Using Python Turtle.

Leave a Reply

Your email address will not be published. Required fields are marked *