from pptx import Presentation
def create_slide(presentation, title, content):
slide_layout = presentation.slide_layouts[1] # Change the slide layout as per your preference
slide = presentation.slides.add_slide(slide_layout)
title_placeholder = slide.shapes.title
title_placeholder.text = title
content_placeholder = slide.placeholders[1]
content_placeholder.text = content
# Create a presentation
presentation = Presentation()
# Slide 1: Introduction Slide
create_slide(presentation, "Introduction", "About Myself")
# Slide 2: Personal Information Slide
create_slide(presentation, "Personal Information", "Name: [Your Name]\nAge: [Your Age]\nOccupation: [Your Occupation]")
# Slide 3: Education Slide
create_slide(presentation, "Education", "[Your Education Details]")
# Slide 4: Work Experience Slide
create_slide(presentation, "Work Experience", "[Your Work Experience Details]")
# Slide 5: Skills Slide
create_slide(presentation, "Skills", "[Your Skills]")
# Slide 6: Hobbies and Interests Slide
create_slide(presentation, "Hobbies and Interests", "[Your Hobbies and Interests]")
# Save the presentation
presentation.save("MyPresentation.pptx")