teromakotero icon

Python_from_Scratch_08_ratkaisu

teromakotero | PRO | 05/13/19 03:14:47 PM UTC | 0 ⭐ | 381 👁️ | Never ⏰ | []
Python |

480 B

|

None

|

0 👍

/

0 👎

import turtle
import background
import time
 
pycat = turtle.Turtle()
pycat.hideturtle()
screen = turtle.Screen()
image = ()
image = "pycat_200_px_left.png"
screen.addshape(image)
pycat.shape(image)
pycat.showturtle()
 
# KIRJOITA TÄMÄN RIVIN ALAPUOLELLE OMA KOODISI
while True:
  nimi = raw_input("Mikä sinun nimesi on? ")
  if(nimi == "loppu"):
    pycat.clear()
    pycat.write("Näkemiin")
    break
  else:
    pycat.clear()
    pycat.write("Hei " + nimi)

Comments