[Tutor] Question about my reading and writing files homework
Marc Tompkins
marc.tompkins at gmail.com
Fri Sep 25 16:43:03 EDT 2020
On Fri, Sep 25, 2020 at 1:15 PM trista rayment via Tutor <tutor at python.org>
wrote:
> I'm having an issue with one thing, and I have a question about another
> thing.
> So first, the question does it have to say 'pathlib'? (would that mean
> path library?) can I substitute other words here?
>
Hi Trista -
"pathlib" is the name of the module you are importing. If you substituted
other words here, you'd be importing some other module. Here's the
official documentation for pathlib (it's part of the Python Standard
Library, meaning that if Python is installed on your machine you don't need
to install anything extra to use the pathlib module - but you DO have to
import it in any script that uses it):
https://docs.python.org/3/library/pathlib.html
Second - your email client has turned your code into one continuous
paragraph. I could make a guess at where the line breaks go, but I have no
idea at all about your indentation. Remember, in Python whitespace is
important! So you'll need to re-post your code, in plain unformatted text,
before anybody will be able to help you much further.
My issue is that I need the bolded part to be sorted alphabetically.
There's no bold part at all in what I see here; you'll need to indicate the
part you mean by some other means. Your email client isn't playing nice
with the mailing-list program.
Good luck -
marc
More information about the Tutor
mailing list