text_plain_output_1.png
import pptx

prs = pptx.Presentation()

title_slide_layout = prs.slide_layouts[0]

slide = prs.slides.add_slide(title_slide_layout)

slide.shapes.title.text = "This is 'slide.shapes.title.text'."
slide.placeholders[1].text = "This is 'slide.placeholders[1].text'."

prs.save('title.pptx')

prs = Presentation('title.pptx')
text = []
for slide in prs.slides:
    for shape in slide.shapes:
        print(shape.text)