teromakotero

Python_from_Scratch_05_ratkaisu

May 13th, 2019
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 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.goto(0,0)
  14. pycat.penup()
  15.  
  16. # KIRJOITA TÄMÄN RIVIN ALAPUOLELLE OMA KOODISI
  17. for i in range(3):
  18.   nimi = raw_input("Mikä sinun nimesi on?")
  19.   pycat.clear()
  20.   pycat.write("Hei " + nimi)
Advertisement
Add Comment
Please, Sign In to add comment