Advertisement
ZEdKasat

Basics Turtle Code

Mar 9th, 2022
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.74 KB | None | 0 0
  1. from turtle import *
  2.  
  3. tom = Turtle()
  4.  
  5. # # sides = int(input("Enter number of sides: "))
  6. # sides = 5
  7. # # sides = int("5")
  8.  
  9. # for manis_crassicoudata in range(sides):
  10. #   tom.forward(100)
  11. #   # tom.left(360/sides)
  12. #   tom.left(180-(180/sides))
  13.  
  14. ### Use "CTRL + /" to comment and uncomment
  15.  
  16. # radius = 50
  17. # for x in range(4):
  18. #   tom.circle(radius)
  19. #   radius = radius + 20
  20.  
  21.  
  22.  
  23. # tom.speed(0)
  24. # sides = 5
  25. # l = 10
  26. # for manis_crassicoudata in range(sides*4):
  27. #   tom.forward(l)
  28. #   l += 10   # l = l + 10
  29. #   tom.left(180-(180/sides))
  30. #   tom.circle(l)
  31.  
  32.  
  33. # tom.color("red")
  34. # tom.pensize(3)
  35.  
  36. # for x in range(4):
  37. #   tom.circle(35)
  38. #   tom.penup()
  39. #   tom.forward(40)
  40. #   tom.pendown()
  41.  
  42.  
  43. tom.goto(-50, 50)
  44.  
  45.  
  46. done()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement