SHARE
TWEET

Cut in Half Python Turtle

a guest Oct 21st, 2019 177 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import turtle
  2.  
  3. t = turtle.Turtle()
  4. t.pensize(5)
  5. t.pencolor("black")
  6. for i in range(-2,1):
  7.     t.penup()
  8.     t.goto(i*100,0)
  9.     t.pendown()
  10.     t.circle(50)
  11.  
  12.     if i == 0:
  13.         break
  14.  
  15.     t.penup()
  16.     t.goto(i*100,100)
  17.     t.pendown()
  18.     t.circle(50)
  19.  
  20. t.penup()
  21. t.goto(-50,0)
  22. t.pendown()
  23. t.left(90)
  24. for i in range(4):
  25.     t.forward(200)
  26.     t.left(90)
  27.  
  28. t.penup()
  29. t.goto(-150,0)
  30. t.pendown()
  31. t.forward(200)
  32. t.right(90)
  33. t.penup()
  34. t.goto(-250,100)
  35. t.pendown()
  36. t.forward(200)
  37.  
  38. t.penup()
  39. t.goto(-250,200)
  40. t.pendown()
  41. t.right(45)
  42. t.forward(282)
  43.  
  44. t.right(90)
  45. t.penup()
  46. t.goto(-50,200)
  47. t.pendown()
  48. t.forward(282)
  49.  
  50. t.pencolor("orange")
  51. t.right(90)
  52. t.penup()
  53. t.goto(0,50)
  54. t.pendown()
  55. t.left(26.56)
  56. t.forward(300)
  57. t.right(180)
  58. t.forward(400)
  59.  
  60. turtle.done()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top