Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### initial set up
- penup()
- setposition(0,-200)
- pendown()
- ### drawing the circle
- def m_circle(radius):
- begin_fill()
- color("gray")
- circle(radius)
- end_fill()
- ### getting the users input for the bottom circle radius
- get_radius = int(input("What is this circles radius?: "))
- ### draws the circles using the paramater and sets proper position afterwards
- m_circle(get_radius)
- penup()
- left(90)
- forward(200)
- right(90)
- m_circle(get_radius / 2)
- penup()
- left(90)
- forward(100)
- right(90)
- m_circle(get_radius / 4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement