Prompt Details
Model
Chat - GPT-3.5 (gpt-3.5-turbo)
Token size
294 ($0.00040 / call)
Example input
I am working on a project about renewable energy and I would like to have 10 slides in total.
Example output
Thank you for sharing your project on renewable energy, and for specifying that you'd like to create 10 slides. I'll generate the code for your presentation. Here's the code to create a basic outline for your renewable energy project in Python using the python-pptx library:
```python
from pptx import Presentation
# Create a presentation object
prs = Presentation()
# Title slide
title_slide_layout = prs.slide_layouts[0]
slide = prs.slides.add_slide(title_slide_layout)
title = slide.shapes.title
subtitle = slide.placeholders[1]
title.text = "Renewable Energy Project"
subtitle.text = "An Overview of Renewable Energy Sources"
# Slides 2 to 10
for i in range(2, 11):
bullet_slide_layout = prs.slide_layouts[1] # Use a bullet point slide layout
slide = prs.slides.add_slide(bullet_slide_layout)
shapes = slide.shapes
title_shape = shapes.title
body_shape = shapes.placeholders[1]
title_shape.text = f"Slide {i}"
tf = body_shape.text_frame
tf.text = "Bullet Points"
# Add bullet points (customize as needed)
p = tf.add_paragraph()
p.text = "Point 1: Renewable Energy Source 1"
p.space_after = Pt(18)
p = tf.add_paragraph()
p.text = "Point 2: Renewable Energy Source 2"
p.space_after = Pt(18)
# Save the presentation to a file
prs.save("RenewableEnergyPresentation.pptx")
print("Presentation code generated successfully! You can find the PowerPoint file as 'RenewableEnergyPresentation.pptx'.")
```
This code will create a PowerPoint presentation with 10 slides, including a title slide and bullet point slides for your renewable energy project. You can further customize the content as needed. If you'd like, I can generate alternative codes or make adjustments based on your preferences.
from pptx import Presentation
# Create a presentation object
prs = Presentation()
# Title slide
title_slide_layout = prs.slide_layouts[0]
slide = prs.slides.add_slide(title_slide_layout)
title = slide.shapes.title
subtitle = slide.placeholders[1]
title.text = "Renewable Energy Project"
subtitle.text = "An Overview of Renewable Energy Sources"
# Slides 2 to 10
for i in range(2, 11):
bullet_slide_layout = prs.slide_layouts[1] # Use a bullet point slide layout
slide = prs.slides.add_slide(bullet_slide_layout)
shapes = slide.shapes
title_shape = shapes.title
body_shape = shapes.placeholders[1]
title_shape.text = f"Slide {i}"
tf = body_shape.text_frame
tf.text = "Bullet Points"
# Add bullet points (customize as needed)
p = tf.add_paragraph()
p.text = "Point 1: Renewable Energy Source 1"
p.space_after = Pt(18)
p = tf.add_paragraph()
p.text = "Point 2: Renewable Energy Source 2"
p.space_after = Pt(18)
# Save the presentation to a file
prs.save("RenewableEnergyPresentation.pptx")
print("Presentation code generated successfully! You can find the PowerPoint file as 'RenewableEnergyPresentation.pptx'.")
By purchasing this prompt, you agree to our terms of service
GPT-3.5-TURBO
MS PowerpointGPT! An AI that can help your PowerPoint presentation!
...more
Added over 1 month ago

