Advertisement
ZEdKasat

Rahee Python Trial

Dec 10th, 2021
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.10 KB | None | 0 0
  1. from turtle import *
  2.  
  3. tom = Turtle()
  4. tom.speed(0)
  5.  
  6. tom.color("red")
  7. tom.pensize(3)
  8.  
  9.  
  10. ### Polygons
  11. # sides = 11
  12. # for john in range(sides):
  13. #   tom.forward(40)
  14. #   tom.left(180-(180/sides))
  15.  
  16. ### Circle in Looop
  17. # radius = 25
  18. # for x in range(25):
  19. #   tom.circle(radius)
  20. #   radius = radius + 5
  21.  
  22.  
  23. ###Spiral Star
  24. # sides = 5
  25. # line = 10
  26. # for john in range(sides*5):
  27. #   tom.forward(line)
  28. #   tom.left(180-(180/sides))
  29. #   line = line + 10
  30.  
  31. ### Flower
  32. # radius = 35
  33. # for y in range(3):
  34. #   for x in range(8):
  35. #     tom.circle(radius)
  36. #     tom.penup()
  37. #     tom.left(45)
  38. #     tom.pendown()
  39. #   radius = radius + 35
  40.  
  41. ### colorful flower
  42. # radius = 35
  43. # for x in range(8):
  44. #   tom.circle(radius)
  45. #   tom.penup()
  46. #   tom.left(45)
  47. #   tom.pendown()
  48. # radius = radius + 35
  49. # tom.color("blue")
  50.  
  51. # for x in range(8):
  52. #   tom.circle(radius)
  53. #   tom.penup()
  54. #   tom.left(45)
  55. #   tom.pendown()
  56. # radius = radius + 35
  57. # tom.color("green")
  58.  
  59. # for x in range(8):
  60. #   tom.circle(radius)
  61. #   tom.penup()
  62. #   tom.left(45)
  63. #   tom.pendown()
  64. # radius = radius + 35
  65.  
  66.  
  67.  
  68. done()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement