

# https://www.globalsino.com/ICs/
# Create slides with text only

import os
from pptx import Presentation

def create_pptx(name, slides):
    "This is my Python"
    prs = Presentation()
    layout = prs.slide_layouts[1]
    for s in slides:
        tit, cont = s.split("$")
        slide = prs.slides.add_slide(layout)
        slide.shapes.title.text = tit
        subtitle = slide.placeholders[1].text = cont

    layout2 = prs.slide_layouts[1]
    slideN = prs.slides.add_slide(layout2)
    titleN = slideN.shapes.title
    titleN.text = "Thank You"
    subtitle = slideN.placeholders[1].text = "Question and Answers Please!"
        
    prs.save(r"C:\0Python\test.pptx")
        
slides = """Integrated Circuits $ During a read operation in memory chips, the signal coming from the cell can be quite small, and sense amplifiers are required to detect the state of the memory cell and restore the signal to a full logic level for use in the external interface. The term sense amplifier refers to a collection of circuit elements that pitch up to the digitlines of a DRAM array. This collection most generally includes isolation transistors
Conclusion $ circuits are called pitch cells """.splitlines()

create_pptx(r"C:\0Python\test.pptx", slides)

