Yehuda Katz <katye2...@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 <rep...@bugs.python.org> wrote: > > Nick Timkovich <prometheus...@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 <rep...@bugs.python.org> > <https://bugs.python.org/issue37968> > _______________________________________ > ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37968> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com