Sara Johnson wrote:
> No luck finding tutors. I don't make enough.
Sara,
Alan didn't say to find a tutor, he suggested you read a tutorial.
You seem to be having problems with very basic python concepts and his
suggestion was to take an hour or two and *read* some gentle
introductions that w
: Alan Gauld <[EMAIL PROTECTED]>
To: tutor@python.org
Sent: Monday, July 30, 2007 5:55:56 PM
Subject: Re: [Tutor] attribute error - quick addition
"Sara Johnson" <[EMAIL PROTECTED]> wrote
> Sorry... I'm still learning about lists, tuples, etc...
Sarah, You've bee
"Sara Johnson" <[EMAIL PROTECTED]> wrote
> Sorry... I'm still learning about lists, tuples, etc...
Sarah, You've been hanging around with this list for a few weeks now.
If you just took one day out to go through the official tutorial then
you
should know enough to answer all of these questions
Sorry... I'm still learning about lists, tuples, etc...
Thanks,
Sara
- Original Message
From: Tiger12506 <[EMAIL PROTECTED]>
To: tutor@python.org
Sent: Monday, July 30, 2007 5:42:47 PM
Subject: Re: [Tutor] attribute error - quick addition
> Thanks Alan and Kent (f
> Thanks Alan and Kent (for the sorting notes)!
>
> Alan...I guess I thought outfile2 had data. { i.e.,
> outfile2=open('missmeas.dat','w') }
Argghh!!! No, no, no! Attribute Error! No matter how much data you have in
the file, you will *never* be able to call sort on it, because file objects
d
, July 29, 2007 7:00:12 PM
Subject: Re: [Tutor] attribute error - quick addition
"Sara Johnson" <[EMAIL PROTECTED]> wrote
> Sorry...I forgot a few more lines at the end of the code. Starts
> with "outfile2write..."
> I also added outfile2.sort()
OK, at leasrt we
"Sara Johnson" <[EMAIL PROTECTED]> wrote
> Sorry...I forgot a few more lines at the end of the code. Starts
> with "outfile2write..."
> I also added outfile2.sort()
OK, at leasrt we see where the error occcurs. The problem emains that
you are
trying to sort a file which doesn't have a sort me
Sorry...I forgot a few more lines at the end of the code. Starts with
"outfile2write..."
I also added outfile2.sort()
Is this the correct traceback? Output okay except it will not sort
alphabetically.
Traceback (most recent call last):
File "./mymods.py", line 83, in