Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from turtle import *
- #importar la biblioteca turtle para dibujar
- dibujo = Turtle() #mi turtle se llamara dibujo
- def estrella(): #aqui empiza mi funcion estrrella
- for i in range(5): #ciclo for para cinco lados de la estrrella
- dibujo.forward(150) #recorrera mi dibujo 100 pixeles
- dibujo.right(144) #como la estrella tiene 5 lados hay 144 grados de separacion entre cada lado adyacente
- estrella() #mandamos llamar a nuesra funcion para que empieze el dibujo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement