gh-106996: Amend the introduction to the turtle graphics documentation (#106997)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
Daniele Procida 2023-07-22 12:31:44 +02:00 committed by GitHub
parent 6acd85d910
commit f8f16d0cfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,9 +19,27 @@
Introduction Introduction
============ ============
Turtle graphics is a popular way for introducing programming to kids. It was Turtle graphics is an implementation of `the popular geometric drawing tools
part of the original Logo programming language developed by Wally Feurzeig, introduced in Logo <https://en.wikipedia.org/wiki/Turtle_
Seymour Papert and Cynthia Solomon in 1967. (robot)>`_, developed by Wally Feurzeig, Seymour Papert and Cynthia Solomon
in 1967.
In Python, turtle graphics provides a representation of a physical "turtle"
(a little robot with a pen) that draws on a sheet of paper on the floor.
It's an effective and well-proven way for learners to encounter
programming concepts and interaction with software, as it provides instant,
visible feedback. It also provides convenient access to graphical output
in general.
Turtle drawing was originally created as an educational tool, to be used by
teachers in the classroom. For the programmer who needs to produce some
graphical output it can be a way to do that without the overhead of
introducing more complex or external libraries into their work.
Get started
===========
Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it the 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 command ``turtle.forward(15)``, and it moves (on-screen!) 15 pixels in the