[Tutor] help with exercise 15 of zed shaw's LPTHW

Michael Selik michael.selik at gmail.com
Tue Jul 5 20:34:28 EDT 2016


On Tue, Jul 5, 2016 at 8:24 PM <lohecn at tuta.io> wrote:

> I'm having trouble with most of the lines here.
>

It looks like you tried to attach a file. This mailing list does not allow
attachments. Instead, could you paste the code into your email?


> things that I don't understand:
> 1. the need to put script into an estipulation for argv (line 3)
> 2. the what is txt and why it has to be used there (line 4)
> 3. txt.read() -- which are all new functions(? I dont even know what they
> are)  (line 7)
>

I'm guessing txt is a file object or a file-like object that supports the
.read method to read the entire contents of the file into a single string
object.


> 4. file_again (line 10)
> 5. txt_again (line 12)
> and line 14.
>


More information about the Tutor mailing list