Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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()
- pycat.goto(0,0)
- pycat.penup()
- # KIRJOITA TÄMÄN RIVIN ALAPUOLELLE OMA KOODISI
- while True:
- numero = input("Anna numero")
- numero = int(numero)
- if(numero < 0):
- pycat.clear()
- pycat.write("Negatiivinen numero")
- break
- else:
- pycat.clear()
- pycat.write("Se on positiivinen numero")
Advertisement
Add Comment
Please, Sign In to add comment