Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Step 1: Make all the "turtle" commands available to us.
- import turtle
- WIDTH, HEIGHT = 256, 256
- #screen = Screen()
- # Step 2: Create a new turtle. We'll call it "bob"
- bob = turtle.Turtle()
- bob.screen.setup(WIDTH + 4, HEIGHT + 8)
- bob.speed(10)
- bob.screen.screensize
- #bob.screen.window_height(300)
- # Step 3: Move in the direction Bob's facing for 50 pixels
- bob.pensize(10)
- bob.forward(100)
- bob.right(90)
- bob.backward(40)
- bob.circle(100,360,50)
- turtle.done()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement