/ Published in: Python

Hacer un pentágono con Turtle
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import turtle print('Dibujar un pentágono!') largo = input('De que largo quieres que sea un lado del pentágono? ') largo = int(largo) turtle.forward (largo) turtle.right(60) turtle.forward(largo) turtle.right(60) turtle.forward(largo) turtle.right (60) turtle.forward(largo) turtle.right(60) turtle.forward(largo) turtle.right(60) turtle.forward(largo) input('Da enter para terminar el programa')
Comments
