Turtle graphics with python 2.7

  • Follow


I need to print text in python but cant figure out how to.
any help would be great! thanks :)
0
Reply Amanda 12/2/2010 5:09:22 PM

Amanda wrote:
> I need to print text in python but cant figure out how to.
> any help would be great! thanks :)

You'd better ask in comp.lang.python

....and take a look at this:
http://docs.python.org/tutorial/introduction.html#strings

-- 
Non puoi insegnare qualcosa ad un uomo. You cannot teach a man anything.
Lo puoi solo aiutare   --  Galileo  Galilei  --   You can only help him
a scoprirla dentro di s�.                        discover it in himself.

Vincenzo Mercuri

0
Reply vincenzo.mercuri2 (96) 12/2/2010 6:02:35 PM


In <W5ydnWzJaoBcT2rRnZ2dnUVZ_sydnZ2d@giganews.com> Amanda <user@compgroups.net/> writes:

> I need to print text in python but cant figure out how to.
> any help would be great! thanks :)

print "hello"

.... doesn't work?

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

0
Reply gordon16 (627) 12/2/2010 7:04:30 PM

Amanda <user@compgroups.net/> writes:
> I need to print text in python but cant figure out how to.
> any help would be great! thanks :)

Then why does your subject header mention turtle graphics?

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
Nokia
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"
0
Reply kst-u (21545) 12/3/2010 2:43:16 AM

On 12/2/2010 9:43 PM, Keith Thompson wrote:
> Amanda<user@compgroups.net/>  writes:
>> I need to print text in python but cant figure out how to.
>> any help would be great! thanks :)
>
> Then why does your subject header mention turtle graphics?

     (Assume initial heading is North, Up, Whatever.)

     Turn right 30 degrees. Pen down. Forward 4. Turn right 120
degrees. Forward 4. Pen up. Turn right 180 degrees. Forward 2.
Turn left 60 degrees. Pen down. Forward 2. Pen up. Turn right
180 degrees. Forward 2. Turn right 30 degrees. Forward 2. Turn
left 60 degrees. Forward 1. "I'd like to buy a B, please."

     Optimization is left as an exercise for the reader.

-- 
Eric Sosman
esosman@ieee-dot-org.invalid
0
Reply esosman2 (2945) 12/3/2010 5:23:30 AM

4 Replies
745 Views

(page loaded in 0.034 seconds)

Similiar Articles:













7/24/2012 3:58:25 PM


Reply: