Re: [Tutor] Fwd: Fwd: Turtle

2016-06-19 Thread Steven D'Aprano
On Sun, Jun 19, 2016 at 04:21:28PM -0700, Hershel Millman wrote: > I entered "import turtle" instead of "from turtle import * ", but it > looks as if it did not import the pendown command. Why is that? Good question. Try this: import turtle print(turtle.__file__) That should print something l

[Tutor] Fwd: Fwd: Turtle

2016-06-19 Thread Hershel Millman
I entered "import turtle" instead of "from turtle import * ", but it looks as if it did not import the pendown command. Why is that? import turtle def drawSquare(size=100): turtle.pendown turtle.forward(size) turtle.left(90) turtle.forward(size) turtle.left(90) turtle.for

Re: [Tutor] Fwd: Turtle

2016-06-19 Thread Steven D'Aprano
On Sat, Jun 18, 2016 at 08:46:53PM -0700, Hershel Millman wrote: > > I followed your instruction and typed "import turtle" into the terminal on > > my mac, and nothing happened. If you're talking about the Python prompt, that's good. That means turtle is installed. Importing a module either suc

Re: [Tutor] Fwd: Turtle

2016-06-19 Thread Alan Gauld via Tutor
On 19/06/16 04:46, Hershel Millman wrote: >> In pycharm, when I enter the following, it replies with the following error >> message: >> >> from turtle import * >> Change that to import turtle and it should work. >> def drawSquare(size=100): >>turtle.pendown() >>turtle.forward(size)

Re: [Tutor] Why are expressions not allowed as parameters in function definition statements?

2016-06-19 Thread Steven D'Aprano
On Sat, Jun 18, 2016 at 09:04:10PM -0700, Danny Yoo wrote: > > You know Steve, as I was typing the beginning of a reply responding to > > a similar question you asked earlier in your response, I suddenly > > realized how ridiculous having a parameter of 'col/2' is! I'll just > > have either eat cr

Re: [Tutor] Correct use of model-view-controller design pattern

2016-06-19 Thread Alan Gauld via Tutor
On 19/06/16 05:18, boB Stepp wrote: > code, I am left scratching my head. My main issue is what am I aiming > at for a final CLI display of a circle? This is not such a simple > thing! First, what are the units for a circle's radius in a CLI? If > it is 1 radius unit = 1 character, then your c

[Tutor] Fwd: Turtle

2016-06-19 Thread Hershel Millman
Begin forwarded message: > From: Hershel Millman > Date: June 18, 2016 2:39:21 PM MST > To: Steven D'Aprano > Subject: Re: [Tutor] Turtle > > Steven, > > I followed your instruction and typed "import turtle" into the terminal on my > mac, and nothing happened. > > When I entered the follow