Now, let's move on to do some interesting operations on PPTs. Importantly, we'll discuss operations that are most frequently used.
No specific modules are required for this recipe; we would use the
python-pptx module that was installed for the earlier recipes. In this recipe, we will work with different slide layouts and play with shapes and text.
from pptx import Presentation prs = Presentation() two_content_slide_layout = prs.slide_layouts slide = prs.slides.add_slide(two_content_slide_layout) shapes = slide.shapes title_shape ...