Advertisement
timber101

Turtle_Basics_Part_4

Mar 13th, 2022
539
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None
  1. # show draw a circle
  2. # use an input prompt
  3. # fill a shape in
  4.  
  5. import turtle
  6.  
  7. wn = turtle.Screen()
  8. wn.bgcolor("skyblue") # background colour in sky blue
  9.  
  10. dot_size = int(input("How big a radius do you want dot? >> "))
  11.  
  12. dot = turtle.Turtle()
  13. dot.shape("turtle")
  14. dot.color("red")
  15.  
  16. dot.begin_fill()
  17. dot.circle(dot_size)
  18. dot.end_fill()
  19.  
  20. wn.exitonclick()
Advertisement
RAW Paste Data Copied
Advertisement