Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from turtle import *
- hours = int(input('Hour: '))
- minutes = int(input('Minute: '))
- # Draw the clock face
- for i in range(12):
- penup()
- forward(100)
- pendown()
- forward(20)
- penup()
- backward(120)
- right(30)
- # Enter your code for "What's the Time" here.
- pensize(4)
- hour = hours*30
- hour2 = hour + (minutes * 0.5)
- minute = minutes*6
- penup()
- left(90)
- right(minute)
- pendown()
- pencolor('black')
- forward(90)
- penup()
- right(180)
- forward(90)
- right(180)
- left(minute)
- right(hour2)
- pendown()
- pencolor('red')
- forward(60)
- penup()
- right(180)
- forward(60)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement