I have a folder with images which I am inserting into a PPTX file I am generating. The below code inserts the images starting with the first slide but I want it to start inserting images from the fifth slide onward. I am unable look for a solution please help. Thanks in advance.
def Generate_PPT(avg_plots):
prs = Presentation()
blank_slide_layout = prs.slide_layouts[6]
for imagePath in (avg_plots):
if (avg_plots.index(imagePath)) % 2 == 0:
slide = prs.slides.add_slide(blank_slide_layout)
left = top = Inches(1)
pic = slide.shapes.add_picture(imagePath, left, top)
prs.save(os.path.join(root,folder1,'PPT_plots.pptx'))