from pptx import Presentation from pptx.util import Inches, Pt from pptx.enum.text import PP_ALIGN from pptx.dml.color import RGBColor prs=Presentation() titles=[ ("Festivals and Their Relationship with Seasons in Nature","Name: __________\nClass: FYBCom\nCollege: K. J. Somaiya College of Arts & Commerce"), ("Introduction","• India is a land of diverse festivals.\n• Festivals are closely connected with nature and seasons.\n• They express gratitude, culture, and harmony."), ("Seasonal Cycle & Nature","• Spring, Summer, Monsoon, Autumn and Winter shape life.\n• Agriculture depends on seasonal changes.\n• Festivals celebrate these natural cycles."), ("Harvest Festivals","• Makar Sankranti\n• Pongal\n• Lohri\n• Baisakhi\n\nThese celebrate harvest and thank nature."), ("Festivals & Natural Elements","• Chhath Puja – Sun\n• Vat Purnima – Banyan Tree\n• Nag Panchami – Biodiversity\n• Tulsi Vivah – Sacred Plants"), ("Festivals in Different Seasons","Winter: Diwali, Christmas\nSpring: Holi\nSummer: Ganga Dussehra\nMonsoon: Onam\nAutumn: Navratri & Durga Puja"), ("Importance","• Preserves culture\n• Promotes unity\n• Respects nature\n• Supports farmers\n• Encourages sustainable living"), ("Environmental Message","• Celebrate eco-friendly festivals.\n• Avoid plastic.\n• Use clay idols.\n• Save water.\n• Plant more trees."), ("Conclusion","Festivals are a way of thanking nature for its gifts and remind us to live in harmony with the environment."), ("Thank You","Thank You!\nAny Questions?") ] colors=[RGBColor(34,139,34),RGBColor(255,165,0),RGBColor(70,130,180)] for i,(t,b) in enumerate(titles): s=prs.slides.add_slide(prs.slide_layouts[6]) s.background.fill.solid() s.background.fill.fore_color.rgb=colors[i%3] tb=s.shapes.add_textbox(Inches(.6),Inches(.4),Inches(11.5),Inches(.6)) p=tb.text_frame.paragraphs[0];p.text=t;p.font.size=Pt(28);p.font.bold=True;p.font.color.rgb=RGBColor(255,255,255) bb=s.shapes.add_textbox(Inches(.8),Inches(1.2),Inches(11),Inches(5)) tf=bb.text_frame for j,line in enumerate(b.split("\n")): par=tf.paragraphs[0] if j==0 else tf.add_paragraph() par.text=line par.font.size=Pt(22) par.font.color.rgb=RGBColor(255,255,255) out="/mnt/data/Festivals_and_Their_Relationship_with_Seasons_in_Nature_10_Slides.pptx" prs.save(out) print(out)
from pptx import Presentation
from pptx.util import Inches, Pt
from pptx.enum.text import PP_ALIGN
from pptx.dml.color import RGBColor
prs=Presentation()
titles=[
("Festivals and Their Relationship with Seasons in Nature","Name: __________\nClass: FYBCom\nCollege: K. J. Somaiya College of Arts & Commerce"),
("Introduction","• India is a land of diverse festivals.\n• Festivals are closely connected with nature and seasons.\n• They express gratitude, culture, and harmony."),
("Seasonal Cycle & Nature","• Spring, Summer, Monsoon, Autumn and Winter shape life.\n• Agriculture depends on seasonal changes.\n• Festivals celebrate these natural cycles."),
("Harvest Festivals","• Makar Sankranti\n• Pongal\n• Lohri\n• Baisakhi\n\nThese celebrate harvest and thank nature."),
("Festivals & Natural Elements","• Chhath Puja – Sun\n• Vat Purnima – Banyan Tree\n• Nag Panchami – Biodiversity\n• Tulsi Vivah – Sacred Plants"),
("Festivals in Different Seasons","Winter: Diwali, Christmas\nSpring: Holi\nSummer: Ganga Dussehra\nMonsoon: Onam\nAutumn: Navratri & Durga Puja"),
("Importance","• Preserves culture\n• Promotes unity\n• Respects nature\n• Supports farmers\n• Encourages sustainable living"),
("Environmental Message","• Celebrate eco-friendly festivals.\n• Avoid plastic.\n• Use clay idols.\n• Save water.\n• Plant more trees."),
("Conclusion","Festivals are a way of thanking nature for its gifts and remind us to live in harmony with the environment."),
("Thank You","Thank You!\nAny Questions?")
]
colors=[RGBColor(34,139,34),RGBColor(255,165,0),RGBColor(70,130,180)]
for i,(t,b) in enumerate(titles):
s=prs.slides.add_slide(prs.slide_layouts[6])
s.background.fill.solid()
s.background.fill.fore_color.rgb=colors[i%3]
tb=s.shapes.add_textbox(Inches(.6),Inches(.4),Inches(11.5),Inches(.6))
p=tb.text_frame.paragraphs[0];p.text=t;p.font.size=Pt(28);p.font.bold=True;p.font.color.rgb=RGBColor(255,255,255)
bb=s.shapes.add_textbox(Inches(.8),Inches(1.2),Inches(11),Inches(5))
tf=bb.text_frame
for j,line in enumerate(b.split("\n")):
par=tf.paragraphs[0] if j==0 else tf.add_paragraph()
par.text=line
par.font.size=Pt(22)
par.font.color.rgb=RGBColor(255,255,255)
out="/mnt/data/Festivals_and_Their_Relationship_with_Seasons_in_Nature_10_Slides.pptx"
prs.save(out)
print(out)
Created using ChatSlide
Indian festivals are deeply rooted in seasonal cycles, honouring nature's rhythms through agriculture, harvest celebrations like Makar Sankranti and Pongal, and worship of natural elements such as the sun and trees. These traditions foster gratitude, cultural harmony, and eco-friendly practices, promoting unity and sustainable living.