Advertisement
Orrin19

turtle goida

Mar 18th, 2024
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. import turtle
  2.  
  3.  
  4. def main():
  5.     screen = turtle.Screen()
  6.     screen.bgcolor("black")
  7.     t = turtle.Turtle()
  8.  
  9.     t.speed("slow")
  10.     t.pensize(10)
  11.     t.color("white")
  12.  
  13.     t.forward(100)
  14.     t.right(135)
  15.     t.forward(20)
  16.     t.color("blue")
  17.     t.forward(100)
  18.     t.color("red")
  19.     t.forward(20)
  20.     t.left(135)
  21.     t.forward(100)
  22.  
  23.     turtle.done()
  24.  
  25.  
  26. if __name__ == "__main__":
  27.     main()
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement