From c16ebb45da60fbda3a2f709dfd9b2073cc9cd8b8 Mon Sep 17 00:00:00 2001 From: N0tstgr Date: Wed, 30 Jul 2025 11:02:54 +0530 Subject: [PATCH] chapter4ps --- 01_problem1.py | 16 ++++++++++++ 02_problem2.py | 16 ++++++++++++ 03_problem.py | 0 ppt.py | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++ pythonL | 1 + 5 files changed, 99 insertions(+) create mode 100644 01_problem1.py create mode 100644 02_problem2.py create mode 100644 03_problem.py create mode 100644 ppt.py create mode 160000 pythonL diff --git a/01_problem1.py b/01_problem1.py new file mode 100644 index 00000000..2c674f08 --- /dev/null +++ b/01_problem1.py @@ -0,0 +1,16 @@ +fruits = [] +f1 = input("Enter the fruite name : ") +fruits.append(f1) +f2 = input("Enter the fruite name : ") +fruits.append(f2) +f3 = input("Enter the fruite name : ") +fruits.append(f3) +f4 = input("Enter the fruite name : ") +fruits.append(f4) +f5 = input("Enter the fruite name : ") +fruits.append(f5) +f6 = input("Enter the fruite name : ") +fruits.append(f6) +f7 = input("Enter the fruite name : ") +fruits.append(f7) +print(fruits) \ No newline at end of file diff --git a/02_problem2.py b/02_problem2.py new file mode 100644 index 00000000..463eb96d --- /dev/null +++ b/02_problem2.py @@ -0,0 +1,16 @@ +marks = [] +f1 = int(input("Enter the Marks here : ")) +marks.append(f1) +f2 = int(input("Enter the Marks here : ")) +marks.append(f2) +f3 = int(input("Enter the Marks here : ")) +marks.append(f3) +f4 = int(input("Enter the Marks here : ")) +marks.append(f4) +f5 = int(input("Enter the Marks here : ")) +marks.append(f5) +f6 = int(input("Enter the Marks here : ")) +marks.append(f6) +marks.sort() + +print(marks) \ No newline at end of file diff --git a/03_problem.py b/03_problem.py new file mode 100644 index 00000000..e69de29b diff --git a/ppt.py b/ppt.py new file mode 100644 index 00000000..b276c089 --- /dev/null +++ b/ppt.py @@ -0,0 +1,66 @@ +from pptx import Presentation +from pptx.util import Inches, Pt +from pptx.dml.color import RGBColor +from pptx.enum.shapes import MSO_SHAPE + +# Create a new PowerPoint presentation +prs = Presentation() + +# Define slide titles and content from the handwritten notes (summarized into 15 slides) +slides_content = [ + ("Marketing Management", "Assignment on Cricket Bat"), + ("Why I Chose This Product", + "I chose the cricket bat because cricket is one of the most loved sports in our country. It connects people of all ages and backgrounds. The bat is the most important equipment, and I find its design and making process very interesting."), + ("Why is it Important?", + "A cricket bat is essential for playing cricket. It helps the player/batsman hit the ball, score runs, and win matches. A good quality bat provides comfort, balance, and performance."), + ("Materials Used in Making Bat", + "- Willow wood (Kashmir or England)\n- Good cane and rubber for handle\n- Thread and glue for binding\n- Rubber grip for hold\n- Polish and stickers for finishing"), + ("Economic Impact", + "Cricket bat production helps the economy:\n- Creates employment in woodwork and sports goods industry\n- Encourages local craftsmanship\n- Boosts exports when bats are sold internationally"), + ("Selling Methods", + "Cricket bats can be sold both online and offline:\nOffline - sports shops, wholesalers, schools\nOnline - websites, Instagram, Amazon, Flipkart, Meesho"), + ("Target Countries for Export", + "Target countries where cricket is growing:\nUSA, Canada, UAE, Nepal, Germany"), + ("Marketing Strategy", + "Create brand website or Instagram page.\nCollaborate with online platforms for food market.\nSend samples to international retailers."), + ("Why Selling Bats is a Good Business", + "High demand in cricket-loving nations.\nSchools and colleges organize matches.\nLow investment, high returns.\nEveryone loves cricket."), + ("Cricket Bat and Youth", + "Young people love cricket.\nHigh potential market among youth and schools."), + ("Business Opportunities", + "Start small with local suppliers.\nScale up to international market."), + ("Export Potential", + "International demand is rising.\nMore countries showing interest in cricket."), + ("Encouraging Local Talent", + "Helps local craftsmen and promotes indigenous skills."), + ("Conclusion", + "Cricket bats are not just sports equipment but a strong business opportunity and cultural product."), + ("Thank You", "Presentation by [Your Name]") +] + +# Function to add a slide with title and content +def add_slide(title, content): + slide_layout = prs.slide_layouts[1] + slide = prs.slides.add_slide(slide_layout) + title_placeholder = slide.shapes.title + content_placeholder = slide.placeholders[1] + title_placeholder.text = title + content_placeholder.text = content + # Style + for shape in slide.shapes: + if not shape.has_text_frame: + continue + for paragraph in shape.text_frame.paragraphs: + for run in paragraph.runs: + run.font.size = Pt(18) + run.font.name = 'Calibri' + +# Create slides +for slide_title, slide_content in slides_content: + add_slide(slide_title, slide_content) + +# Save the presentation +pptx_path = "/mnt/data/Cricket_Bat_Assignment_Presentation.pptx" +prs.save(pptx_path) + +pptx_path diff --git a/pythonL b/pythonL new file mode 160000 index 00000000..894b4d95 --- /dev/null +++ b/pythonL @@ -0,0 +1 @@ +Subproject commit 894b4d95c14525532bd158d7a3e7327dcd0192ce