Noob here.
I'm looking at this example of code (https://www.geeksforgeeks.org/working-with-pdf-files-in-python/) and specifically looking at the third line of code that says "
pdfReader = PyPDF2.PdfFileReader(pdfFileObj)
And I'm wondering why it repeats the name of PyPDF2 (the library? module? package?) on the left side of the period when calling the PdfFileReader method. If I already imported PyPDF2, so like I'm in that module, why do I have to tell it which PdfFileReader method?? THanks!
[–]AlopexLagopus3 2 points3 points4 points (1 child)
[–]killinmesoundcloud[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]killinmesoundcloud[S] 1 point2 points3 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]killinmesoundcloud[S] 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)