[Tutor] beginner help!!!! (fwd)

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Fri Sep 3 19:38:22 CEST 2004

Hi Jill,

Let me forward your response to Tutor too: please use "Reply-to-All" in
your email client, so that your responses reach the Tutor list.  We want
to make sure you can get help from the whole group, and not just one

Anyway, ok, let's take a look.  Hmmm... from your printout below, I see
that you can get the 'print' statements working ok, so that's good.

When you saved your program, how did you save it?  What does your saved
file look like?

Have you seen this page yet?


The tutorial from that link should show how to save and run a program ---
it also covers a few pitfalls that you might be running into.

I have a vague feeling that you might be saving the "transcript" --- that
is, the conversation you're having with the interpreter, but and not just
program statements.

Can you try the tutorial above and see if you can get that sample exercise

Good luck to you.

---------- Forwarded message ----------
Date: Thu, 2 Sep 2004 21:02:11 -0400
From: Jill and Paul <bear4 at zoominternet.net>
To: Danny Yoo <dyoo at hkn.eecs.berkeley.edu>
Subject: Re: [Tutor] beginner help!!!!

Thanks Danny!

I feel so out of it!  Here is the sample exercise I typed:

Python 2.3 (#46, Jul 29 2003, 18:54:32) [MSC v.1200 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.

    Personal firewall software may warn about the connection IDLE
    makes to its subprocess using this computer's internal loopback
    interface.  This connection is not visible on any external
    interface and no data is sent to or received from the Internet.

IDLE 1.0
>>> print "Jack and Jill went up a hill"
Jack and Jill went up a hill
>>> print "to fetch a pail of water;"
to fetch a pail of water;
>>> print "Jack fell down, and broke his crown,"
Jack fell down, and broke his crown,
>>> print "and Jill came tumbling after."
and Jill came tumbling after.
After I save it and try to run it here comes the error.  It says:
        Syntax error
            There's an error in your program:
            invalid syntax
It has an OK button.

Ugh!  It does that every time I type an exercise.  I can't run any of them!
I have no idea what happened to the indentation error I asked about
previously.  How frustrating!


----- Original Message -----
From: "Danny Yoo" <dyoo at hkn.eecs.berkeley.edu>
To: "'Jill and Paul'" <bear4 at zoominternet.net>
Cc: "Tutor" <tutor at python.org>
Sent: Thursday, September 02, 2004 2:17 PM
Subject: RE: [Tutor] beginner help!!!!

> On Thu, 2 Sep 2004, Kooser, Ara S wrote:
> > Could you post the code and the error message. Thanks
> Hi Jill,
> Yes, we need to see your code.  I suspect it might be an indentation
> problem, but without seeing your code, I can't make any solid remarks
> either.  Feel free to just copy and paste it in your reply.
> About the error message stuff: don't parapharse the error: show it to us
> as it comes.  For example, here's the kind of error message we like to
> see:
> ###
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> NameError: name 'oracle' is not defined
> ###
> In contrast, if we paraphrase the error message to just:
>     "There's a Name Error somewhere in my program",
> then that's not as helpful to us.  The real error message itself has told
> us what appears to be undefined, and on what line the problems appear to
> start.  The paraphrase, on the other hand, just tells us that something's
> wrong, but doesn't tell us where to look.
> In this case, originality is not a good thing: it's good not to suppress
> that information in paraphrase.  Instead, just copy-and-paste the error,
> around where the "Traceback" starts.
> Good luck!

More information about the Tutor mailing list