How to Solve NameError: name 'Presentation' is not defined -- pptx
Solution: Import the 'Presentation' module
To Solve the error, add the following line to the top of your code.
from pptx import Presentation
For more information:
Python pptx Presentation