Import the package
Import the package
import turtle
screen = turtle.Screen()
screen.setup(500, 500)
clock = turtle.Turtle()
clock.color("Orange")
clock.width(4)
def drawHourHand():
clock.penup()
clock.home()
clock.right(90)
clock.pendown()
clock.forward(100)
value = 0
for i in range(12):
# Increment value by 1
value += 1
clock.penup()
# Circular motion
clock.setheading(-30 * (i + 3) + 75)
clock.forward(22)
clock.pendown()
clock.forward(15)
clock.penup()
clock.forward(20)
clock.setpos(2, -112)
clock.pendown()
clock.width(2)
clock.fillcolor("Blue")
# Start filling
clock.begin_fill()
# End filling
clock.end_fill()
clock.penup()
drawHourHand()
clock.setpos(-20, -64)
clock.pendown()
clock.penup()
clock.setpos(-60, -160)
clock.pendown()
clock.hideturtle()
turtle.done()
import time
kalam.fd(20) #forward at 20
hands = [("black", 80, 12), ("black", 150, 60), ("black", 110, 60)] #the color and the hands set
while True:
ghadi_bana(ghantaa, minutee, secondd, kalam) #calling the ghanta_bana() function with the given
parameters
time.sleep(1) #making the code sleep for a second with the time module
kalam.clear() #clearing the pen