Python | Create a Analog Clock using Turtle

Python | Create a Analog Clock using Turtle

Python | Create a Analog Clock using Turtle

from turtle import*
title("Programming Ka Keeda")
bgcolor('black')
speed(5)
penup()
goto(0,150)
seth(0)

for i in range(12):
    color("white")
    circle(-150,29 if i>=9 else 30)
    write(i+1,font=('Arial', 35, 'bold'))

color("yellow")
goto(10,10)    
pendown()
seth(170)
width(15)
forward(80)

goto(10,10)
seth(50)
width(5)
forward(120)

seth(90)
width(10)
goto(20,10)
pendown()
color("blue")
circle(10)

penup()
goto(10, 215)
pendown()
color("darkred")
width(10)
seth(180)
circle(190)

penup()
goto(10, 235)
pendown()
color("yellow")
width(25)
seth(180)
circle(210)

hideturtle()
done()
Humari Programming Ka Keeda website me aane ke liye apka dhanyawaad!😊

एक टिप्पणी भेजें

0 टिप्पणियाँ
* Please Don't Spam Here. All the Comments are Reviewed by Admin.