Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pptx import Presentation
- from math import sqrt, cos, sin, tan, factorial, isinf
- presentation = Presentation()
- list_of_methods = [sqrt, cos, sin, tan, factorial, isinf]
- for method in list_of_methods:
- title_slide = presentation.slide_layouts[0]
- slide = presentation.slides.add_slide(title_slide)
- title = slide.shapes.title
- subtitle = slide.placeholders[1]
- title.text = method.__name__
- subtitle.text = method.__doc__
- presentation.save("result2.pptx")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement