teromakotero icon

Python_from_Scratch_06_ratkaisu

teromakotero | PRO | 05/13/19 03:08:44 PM UTC | 0 ⭐ | 335 👁️ | Never ⏰ | []
Python |

540 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()
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")

Comments