This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nicktimko
Recipients Yehuda, nicktimko
Date 2019-08-28.16:04:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567008262.72.0.849281338901.issue37968@roundup.psfhosted.org>
In-reply-to
Content
Regarding #1: In Python, you may refer to a variable's name (e.g. `rt`, which is a function), which often has no effect in a script. In the REPL (where you see >>>) it is useful to inspect the object:

>>> turtle.rt
<function rt at 0x7f14b8d46ea0>

In order to call that name/function, parentheses are *required* unlike other languages where they are optional (Ruby). So, you don't get an error message, but one is not expected. Linting tools can alert you to statements that don't appear to have an effect.

Regarding #2: Students of the turtle could create a reusable function to draw a circle with the turtle and return to the starting position. It would be an excellent exercise with multiple solutions!
History
Date User Action Args
2019-08-28 16:04:22nicktimkosetrecipients: + nicktimko, Yehuda
2019-08-28 16:04:22nicktimkosetmessageid: <1567008262.72.0.849281338901.issue37968@roundup.psfhosted.org>
2019-08-28 16:04:22nicktimkolinkissue37968 messages
2019-08-28 16:04:22nicktimkocreate