How to use a variable instead of a constant in the following statement in python with PyPDF2
How to use a variable instead of a constant in the following statement in python with PyPDF2 Question: object = PyPDF2.PdfFileReader(r"C:PROYECTOSPruebasPDFArchivosPDF326581098.pdf") changing the path for a variable, how would the sentence be path = "C:PROYECTOSPruebasPDFArchivosPDF326581098.pdf" object = PyPDF2.PdfFileReader(r….) Asked By: Panyvino || Source Answers: you should be able to use path = r"C:PROYECTOSPruebasPDFArchivosPDF326581098.pdf" object = …