Message350670
Hi,
Sorry to say but these don't satisfy my issues.
1 the next code SHOULD produce an error message. Think that it's followed
by a few dozens of code lines:
from turtle import *
fd; rt(90)
2 Old Logo had a useful function of creating a circle AROUND THE TURTLE. It
would be very nice it such a function was built-in in Python's turtle
module.
Giving this to student as a problem is not a good answer, it's more like a
sort of "pass the baby" solution.
Thank you for the fast reply.
On Wed, Aug 28, 2019 at 7:26 PM Yehuda Katz <report@bugs.python.org> wrote:
>
> Yehuda Katz <katye2007@gmail.com> added the comment:
>
> Sorry to say but these don't satisfy my issues.
>
> 1 the next code SHOULD produce an error message. Think that it's followed
> by a few dozens of code lines:
> from turtle import *
> fd; rt(90)
> 2 Old Logo had a useful function of creating a circle AROUND THE TURTLE. It
> would be very nice it such a function was built-in in turtle module.
> Giving this to student as a problem is not a good answer, it's more like a
> sort of "pass the baby" solution.
>
> Thank you for the fast reply.
>
> Yehuda Katz (Israel)
>
> On Wed, Aug 28, 2019 at 7:04 PM Nick Timkovich <report@bugs.python.org>
> wrote:
>
> >
> > Nick Timkovich <prometheus235@gmail.com> added the comment:
> >
> > 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!
> >
> > ----------
> > nosy: +nicktimko
> >
> > _______________________________________
> > Python tracker <report@bugs.python.org>
> > <https://bugs.python.org/issue37968>
> > _______________________________________
> >
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue37968>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2019-08-28 16:29:35 | Yehuda | set | recipients:
+ Yehuda, nicktimko |
2019-08-28 16:29:35 | Yehuda | link | issue37968 messages |
2019-08-28 16:29:35 | Yehuda | create | |
|