Advertisement
earlution

One balloon

May 15th, 2020
1,108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. import turtle
  2. bob = turtle.Turtle()
  3.  
  4. bob.left(90) # to point Turtle up
  5.  
  6. bob.pencolor("black") # Sets the colour of the string
  7. bob.forward(150) # Sets the length of the string
  8. bob.pencolor("Red") # Set the colour of the balloon, in this case, red
  9. bob.pensize(60) # This sets the size of the balloon, experiment...
  10. bob.forward(1) # Draw the balloon
  11. bob.pensize(1) # Reset the the pensize
  12. bob.penup()
  13. bob.backward(151) # Return Turtle to starting position
  14. bob.pendown()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement