Skip to content

Instantly share code, notes, and snippets.

@danielnaranjo
Created November 18, 2024 13:58
Show Gist options
  • Select an option

  • Save danielnaranjo/19861e84b6d66c5624d30fa84529cc23 to your computer and use it in GitHub Desktop.

Select an option

Save danielnaranjo/19861e84b6d66c5624d30fa84529cc23 to your computer and use it in GitHub Desktop.

Revisions

  1. danielnaranjo created this gist Nov 18, 2024.
    19 changes: 19 additions & 0 deletions tortuga.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    # Para ver este ejemplo, recuerda que debes ejecutar python en la consola o terminal, por ejemplo: python tortuga.py
    # NO modificar desde este punto ;)
    import turtle
    t = turtle.Pen()
    t.shape("turtle")
    t.setheading(90)
    # Tips:
    # t.left(numero de pasos)
    # t.right(numero de pasos)
    # t.forward(numero de pasos)
    # t.backward(numero de pasos)

    # Escribe aqui tus movimientos desde aqui...

    # hasta aqui

    # Modificar desde este punto
    t.getscreen()._root.mainloop()
    turtle.done()