Sep-16-2019, 03:12 PM
Really, really basic question here...
With regard to this snippet:
Where did the third line come from? It looks like a file has been imported: string.punctuation. How does the computer know where to find that file? No path was given, no website given as to where to find it, etc.
Or... when I installed Python on my PC, which I think I did the start of this journey, was string.punctuation part of that installation?
What's the difference between string.punctuation and a "library" (or is this such a library)?
With regard to this snippet:
1 2 3 |
>>> import string >>> string.punctuation '!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~' |
Or... when I installed Python on my PC, which I think I did the start of this journey, was string.punctuation part of that installation?
What's the difference between string.punctuation and a "library" (or is this such a library)?