[Tutor] Print question in IDLE

Vern Ceder vceder at canterburyschool.org
Sat Jan 31 02:16:38 CET 2009

I just tried it in Python 3 (both at the interactive prompt and in idle) 
and both places I get:

 >>> "food is very nice" #lets eat
'food is very nice'

So it looks like it *should* work. You might copy and paste exactly what 
you get into a post, including the full error traceso that we can see if 
there is some other problem.

 From the error message I (like Alan) wonder if you are typing in the 
">>>" or something like that.


jims wrote:
> I apologize for asking such a dumb question but I have no prior 
> programming experience and am trying to learn by following examples from 
> a book. And also from the web.
> Simply put here is where I am stuck. (Python version 3.0)
> I type in the example using the comment command:
> (example)  *>>> "food is very nice" #lets eat
> *(I am supposed to get) *food is very nice
> (*What I do get is) SyntaxError:  invalid syntax (<pyshell#3>,  line 1)
> I understand the comment part, no problem but no way can I get past what 
> ever else I am doing wrong.  I assume it's something fundamental but I 
> can't get past this.
> Thanks for any help.
> Jim
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor

This time for sure!
    -Bullwinkle J. Moose
Vern Ceder, Director of Technology
Canterbury School, 3210 Smith Road, Ft Wayne, IN 46804
vceder at canterburyschool.org; 260-436-0746; FAX: 260-436-5137

More information about the Tutor mailing list