8000 gh-106996: Add a how-to section to the turtle documentation by evildmp · Pull Request #107153 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
8000

gh-106996: Add a how-to section to the turtle documentation #107153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jul 25, 2023
Prev Previous commit
Next Next commit
Merge branch 'main' into turtle-docs
  • Loading branch information
evildmp authored Jul 23, 2023
commit 7ac7a3f104804901c3b9d8c48147f1a7ca90fb08
9 changes: 9 additions & 0 deletions Doc/library/turtle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ introduced in Logo <https://en.wikipedia.org/wiki/Turtle_
(robot)>`_, developed by Wally Feurzeig, Seymour Papert and Cynthia Solomon
in 1967.


Get started
===========

Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it the
command ``turtle.forward(15)``, and it moves (on-screen!) 15 pixels in the
direction it is facing, drawing a line as it moves. Give it the command
``turtle.right(25)``, and it rotates in-place 25 degrees clockwise.

.. sidebar:: Turtle star

Turtle can draw intricate shapes using programs that repeat simple
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0