teromakotero

Python_from_Scratch_03_ratkaisu

May 13th, 2019
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. import turtle
  2. import background
  3. import time
  4.  
  5. pycat = turtle.Turtle()
  6. pycat.hideturtle()
  7. screen = turtle.Screen()
  8. image = ()
  9. image = "pycat_200_px_left.png"
  10. screen.addshape(image)
  11. pycat.shape(image)
  12. pycat.showturtle()
  13. pycat.penup()
  14.  
  15. # KIRJOITA TÄMÄN RIVIN ALAPUOLELLE OMA KOODISI
  16. while True:
  17.   pycat.forward(10)
  18.   time.sleep(0.5)
  19.   pycat.back(10)
  20.   time.sleep(0.5)
Advertisement
Add Comment
Please, Sign In to add comment