Advertisement
ZEdKasat

Basics Turtle

Feb 5th, 2022
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1.  
  2. # name = input("Enter your name: ")
  3. # year = int(input("Enter your birth year: "))
  4. # age = 2022-year
  5. # print("Hello", name, "It seems that you are about", age, "years old.")
  6.  
  7.  
  8. # CTRL + /  
  9.  
  10. from turtle import *
  11. tom = Turtle()
  12.  
  13. tom.pensize(4)
  14. tom.color("red")
  15.  
  16. tom.circle(50)
  17.  
  18. tom.penup()
  19. tom.forward(100)
  20. tom.pendown()
  21.  
  22.  
  23. for x in range(20):
  24.     tom.left(90)
  25.     tom.forward(30*x)
  26.     print(x)
  27.  
  28. done()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement