PyPDF2 Flashcards
1
Q
Is PyPDF4 backwards compatible with PyPDF2?
A
No, not completely
2
Q
what is the point of an f string literal? how would you change this code to a f string literal:
“Hello {}, you are {} years old, right?”.format(name, age)”
A
f string literal is cleaner than % formatting and less verbiose than str.format(). Example with f string literal:
f”"”Hello {name}, you are {age} years old, right?”
3
Q
if you are attempting to extract text from a pdf, what’s the best library to use?
A
pdfminer