<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pulkit Arora on Medium]]></title>
        <description><![CDATA[Stories by Pulkit Arora on Medium]]></description>
        <link>https://medium.com/@apulkit674?source=rss-f9735754d2d6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_2ZFkVCGhq0KMfrJ7Mk_vw.jpeg</url>
            <title>Stories by Pulkit Arora on Medium</title>
            <link>https://medium.com/@apulkit674?source=rss-f9735754d2d6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 10:34:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@apulkit674/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Abstract Factory Design Pattern]]></title>
            <link>https://medium.com/@apulkit674/abstract-factory-design-pattern-e4ea1e913300?source=rss-f9735754d2d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4ea1e913300</guid>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[abstract-factory-pattern]]></category>
            <category><![CDATA[lld]]></category>
            <dc:creator><![CDATA[Pulkit Arora]]></dc:creator>
            <pubDate>Tue, 26 May 2026 14:11:00 GMT</pubDate>
            <atom:updated>2026-05-26T14:11:00.650Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qUEm8YBNpCThw3X19-VJXg.png" /></figure><h3>1. Intent of Abstract Factory</h3><p>The Abstract Factory pattern provides:</p><blockquote><em>“An interface for creating families of related or dependent objects without specifying their concrete classes.”</em></blockquote><p>This is one of the most important phrases in design patterns.</p><p>Focus on:</p><ul><li><strong>families of related objects</strong></li><li>object creation abstraction</li><li>consistency between created objects</li></ul><h3>2. Why Do We Need Abstract Factory?</h3><p>Suppose you are building:</p><ul><li>cross-platform UI framework</li></ul><p>You need:</p><ul><li>Windows Button</li><li>Windows Checkbox</li></ul><p>OR</p><ul><li>Mac Button</li><li>Mac Checkbox</li></ul><p>You must ensure:</p><ul><li>Windows components work together</li><li>Mac components work together</li></ul><p>You do NOT want:</p><pre>WindowsButton + MacCheckbox</pre><p>That creates:</p><ul><li>inconsistent behavior</li><li>UI mismatch</li><li>compatibility problems</li></ul><p>Abstract Factory solves this.</p><h3>3. Core Idea</h3><p>Factory Method:</p><ul><li>creates ONE product</li></ul><p>Abstract Factory:</p><ul><li>creates FAMILIES of related products</li></ul><h3>4. Real-World Analogy</h3><h4>Furniture Store</h4><p>Suppose IKEA sells:</p><h4>Modern Style</h4><ul><li>Modern Sofa</li><li>Modern Chair</li><li>Modern Table</li></ul><h4>Victorian Style</h4><ul><li>Victorian Sofa</li><li>Victorian Chair</li><li>Victorian Table</li></ul><p>A customer chooses:</p><ul><li>one style family</li></ul><p>Then all products belong to:</p><ul><li>same design ecosystem</li></ul><p>Abstract Factory works exactly like this.</p><h3>5. Important Terminology</h3><h4>Abstract Products</h4><p>Interfaces/base classes for products.</p><p>Example:</p><ul><li>Button</li><li>Checkbox</li></ul><h4>Concrete Products</h4><p>Actual implementations.</p><p>Example:</p><ul><li>WindowsButton</li><li>MacButton</li></ul><h4>Abstract Factory</h4><p>Interface for factories.</p><p>Example:</p><ul><li>GUIFactory</li></ul><h3>6. Problem Without Abstract Factory</h3><pre># Naive Approach<br><br>if os == &quot;windows&quot;:<br>    button = WindowsButton()<br>    checkbox = WindowsCheckbox()<br><br>elif os == &quot;mac&quot;:<br>    button = MacButton()<br>    checkbox = MacCheckbox()<br><br>&quot;&quot;&quot;<br>Problems:<br><br>-scattered object creation<br>-tight coupling<br>-huge conditional logic<br>-hard extensibility<br><br>As products grow:<br>-complexity explodes<br><br>&quot;&quot;&quot;</pre><h3>7. Step-by-Step Python Implementation</h3><h4>Step 1 — Create Abstract Products</h4><p>Button Interface</p><pre>from abc import ABC, abstractmethod<br><br>class Button(ABC):<br><br>    @abstractmethod<br>    def render(self):<br>        pass</pre><p>Checkbox Interface</p><pre>class Checkbox(ABC):<br><br>    @abstractmethod<br>    def check(self):<br>        pass</pre><h4>Step 2 — Create Concrete Products</h4><p>Windows Products</p><pre>class WindowsButton(Button):<br><br>    def render(self):<br>        print(&quot;Rendering Windows Button&quot;)<br><br><br>class WindowsCheckbox(Checkbox):<br><br>    def check(self):<br>        print(&quot;Windows Checkbox Checked&quot;)</pre><p>MAC Products</p><pre>class MacButton(Button):<br><br>    def render(self):<br>        print(&quot;Rendering Mac Button&quot;)<br><br><br>class MacCheckbox(Checkbox):<br><br>    def check(self):<br>        print(&quot;Mac Checkbox Checked&quot;)</pre><h4>Step 3 — Create Abstract Factory</h4><pre>class GUIFactory(ABC):<br><br>    @abstractmethod<br>    def create_button(self):<br>        pass<br><br>    @abstractmethod<br>    def create_checkbox(self):<br>        pass</pre><h4>Step 4 — Concrete Factories</h4><p>Window Factory</p><pre>class WindowsFactory(GUIFactory):<br><br>    def create_button(self):<br>        return WindowsButton()<br><br>    def create_checkbox(self):<br>        return WindowsCheckbox()</pre><p>MAC Factory</p><pre>class MacFactory(GUIFactory):<br><br>    def create_button(self):<br>        return MacButton()<br><br>    def create_checkbox(self):<br>        return MacCheckbox()</pre><h4>Step 5 — Client Code</h4><pre>class Application:<br><br>    def __init__(self, factory: GUIFactory):<br>        self.button = factory.create_button()<br>        self.checkbox = factory.create_checkbox()<br><br>    def render_ui(self):<br>        self.button.render()<br>        self.checkbox.check()<br><br><br>factory = WindowsFactory()<br>app = Application(factory)<br><br>app.render_ui()<br><br># Output<br>Rendering Windows Button<br>Windows Checkbox Checked</pre><h3>8. Key Insight</h3><h4>The client never knows:</h4><pre>WindowsButton<br>MacButton</pre><p>Client only knows:</p><pre>Button<br>Checkbox<br>GUIFactory</pre><p>This is:</p><ul><li>Dependency Inversion Principle</li><li>loose coupling</li></ul><h3>9. Why is This Powerful?</h3><p>Suppose tomorrow we add:</p><pre>LinuxFactory<br>LinuxButton<br>LinuxCheckbox</pre><p>Client code remains unchanged.</p><p>This is:</p><ul><li>Open/Closed Principle</li></ul><h3>10. Family Consistency</h3><p>Abstract Factory guarantees:</p><pre>WindowsFactory -&gt;<br>    WindowsButton<br>    WindowsCheckbox</pre><p>Never mixed families.</p><p>This is the most important advantage.</p><h3>Thanks for Reading!</h3><p>I’m passionate about backend engineering, scalable systems, and writing clean, maintainable software.</p><p>If this article helped you, feel free to connect with me on <a href="https://www.linkedin.com/in/pulkit-ar/">LinkedIn</a>. I’m always open to networking with fellow engineers, tech enthusiasts.</p><p>See you in the next article 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4ea1e913300" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Singleton Design Pattern — Python Example]]></title>
            <link>https://medium.com/@apulkit674/singleton-design-pattern-python-example-8afc934e098f?source=rss-f9735754d2d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/8afc934e098f</guid>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[lld]]></category>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[singleton-design-pattern]]></category>
            <dc:creator><![CDATA[Pulkit Arora]]></dc:creator>
            <pubDate>Sat, 23 May 2026 12:56:12 GMT</pubDate>
            <atom:updated>2026-05-23T12:56:12.009Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WEQhpI-9eSAh0tZBBAdFng.png" /></figure><h3>1. Intent of Singleton</h3><p>The Singleton pattern ensures:</p><blockquote><em>“A class has only one instance and provides a global access point to it.”</em></blockquote><p>This means:</p><ul><li>Only one object of the class can ever exist</li><li>Everyone uses the same shared instance</li></ul><h3>2. Why Do We Need Singleton?</h3><p>Imagine these scenarios:</p><ul><li>Database connection manager</li><li>Logger service</li><li>Cache manager</li><li>Configuration manager</li><li>Thread pool manager</li><li>Application-wide settings</li><li>GPU resource manager</li></ul><p>You typically want:</p><ul><li>centralized control</li><li>shared state</li><li>resource optimization</li></ul><p>You do <strong>NOT</strong> want:</p><ul><li>multiple DB pools accidentally created</li><li>multiple logger files writing independently</li><li>duplicated cache state</li></ul><h3>3. Basic Singleton Implementation in Python</h3><pre>class Singleton:<br>    _instance = None<br><br>    def __new__(cls):<br>        if cls._instance is None:<br>            print(&quot;Creating new instance&quot;)<br>            cls._instance = super().__new__(cls)<br><br>        return cls._instance<br><br>obj1 = Singleton()<br>obj2 = Singleton()<br><br>print(obj1 is obj2) # True</pre><h3>4. Understanding __new__</h3><p>In Python:</p><p>__new__ is responsible for:</p><ul><li>creating object</li></ul><p>__init__ is responsible for:</p><ul><li>initializing object</li></ul><p>Singleton mainly controls:</p><ul><li>object creation</li></ul><p>Therefore:</p><ul><li>we override __new__</li></ul><h3>5. Better Singleton</h3><pre>class Singleton:<br>    _instance = None<br>    _initialized = False<br><br>    def __new__(cls):<br>        if cls._instance is None:<br>            cls._instance = super().__new__(cls)<br><br>        return cls._instance<br><br>    def __init__(self):<br>        if not self._initialized:<br>            print(&quot;Initializing once&quot;)<br>            self.value = 100<br>            Singleton._initialized = True</pre><h3>6. Production-Level Example — Logger</h3><pre>class Logger:<br>    _instance = None<br><br>    def __new__(cls):<br>        if cls._instance is None:<br>            cls._instance = super().__new__(cls)<br>            cls._instance.logs = []<br><br>        return cls._instance<br><br>    def log(self, message):<br>        self.logs.append(message)<br><br>    def show_logs(self):<br>        for log in self.logs:<br>            print(log)<br><br>logger1 = Logger()<br>logger2 = Logger()<br><br>logger1.log(&quot;Started app&quot;)<br>logger2.log(&quot;DB connected&quot;)<br><br>logger1.show_logs()<br><br><br># Output<br>Started app<br>DB connected</pre><p>Both share:</p><ul><li>same state</li><li>same object</li></ul><h3>7. Thread-Safe Singleton</h3><pre># Use Locking<br><br>import threading<br><br>class Singleton:<br>    _instance = None<br>    _lock = threading.Lock()<br><br>    def __new__(cls):<br><br>        if cls._instance is None:<br><br>            with cls._lock:<br><br>                if cls._instance is None:<br>                    cls._instance = super().__new__(cls)<br><br>        return cls._instance<br><br># Used in: high-concurrency systems</pre><h3>8. Singleton Using Metaclass</h3><pre>class SingletonMeta(type):<br><br>    _instances = {}<br><br>    def __call__(cls, *args, **kwargs):<br><br>        if cls not in cls._instances:<br>            cls._instances[cls] = super().__call__(*args, **kwargs)<br><br>        return cls._instances[cls]<br><br># Usage<br><br>class Database(metaclass=SingletonMeta):<br><br>    def connect(self):<br>        print(&quot;Connected&quot;)<br><br>d1 = Database()<br>d2 = Database()<br><br>print(d1 is d2) # True</pre><h3>9. Why Metaclass Version is Better</h3><p>Benefits:</p><ul><li>reusable</li><li>cleaner</li><li>scalable</li><li>supports multiple singleton classes</li><li>separates singleton logic</li></ul><p>This is closer to:</p><ul><li>framework-level engineering</li></ul><h3>10. When to Use Singleton</h3><p>Use when:</p><ul><li>exactly one logical instance should exist</li><li>shared coordination required</li><li>expensive resource initialization</li><li>application-wide shared service</li></ul><p>Good candidates:</p><ul><li>logging</li><li>config manager</li><li>DB connection pool manager</li><li>cache manager</li></ul><h3>11. When NOT to Use Singleton</h3><p>Avoid when:</p><ul><li>state changes frequently</li><li>unit testing is critical</li><li>dependency injection already solves problem</li><li>object uniqueness isn’t mandatory</li><li>scalability/distributed systems involved</li></ul><h3>12. Most Pythonic Production Version</h3><pre>import threading<br><br>class SingletonMeta(type):<br><br>    _instances = {}<br>    _lock = threading.Lock()<br><br>    def __call__(cls, *args, **kwargs):<br><br>        if cls not in cls._instances:<br><br>            with cls._lock:<br><br>                if cls not in cls._instances:<br>                    instance = super().__call__(*args, **kwargs)<br>                    cls._instances[cls] = instance<br><br>        return cls._instances[cls]<br><br><br>class Database(metaclass=SingletonMeta):<br><br>    def __init__(self):<br>        self.connection = &quot;Connected&quot;<br><br>    def query(self):<br>        print(&quot;Executing query&quot;)<br><br><br># Usage<br><br>db1 = Database()<br>db2 = Database()<br><br>print(db1 is db2)</pre><h3>Thanks for Reading!</h3><p>I’m passionate about backend engineering, scalable systems, and writing clean, maintainable software.</p><p>If this article helped you, feel free to connect with me on <a href="https://www.linkedin.com/in/pulkit-ar/">LinkedIn</a>. I’m always open to networking with fellow engineers, tech enthusiasts.</p><p>See you in the next article 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8afc934e098f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Time: A Journey from Chaos to Control Kindle Edition]]></title>
            <link>https://medium.com/@apulkit674/mastering-time-a-journey-from-chaos-to-control-kindle-edition-6396a376f67d?source=rss-f9735754d2d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/6396a376f67d</guid>
            <category><![CDATA[time-management-tips]]></category>
            <category><![CDATA[time-management-tools]]></category>
            <category><![CDATA[time]]></category>
            <category><![CDATA[time-management]]></category>
            <category><![CDATA[mastering-time]]></category>
            <dc:creator><![CDATA[Pulkit Arora]]></dc:creator>
            <pubDate>Sun, 26 Jan 2025 13:14:16 GMT</pubDate>
            <atom:updated>2025-01-26T13:14:16.905Z</atom:updated>
            <content:encoded><![CDATA[<p>Do you ever feel like there’s never enough time? Are you constantly overwhelmed by deadlines, commitments, and distractions? Mastering Time: A Journey from Chaos to Control offers a fresh, engaging approach to mastering time management through the lens of storytelling.</p><p>This book covers:</p><ul><li>Proven time management techniques such as time blocking, prioritization, and the Pomodoro technique.</li><li>Strategies to overcome procrastination, distractions, and setbacks.</li><li>Real-life scenarios that demonstrate how to balance work, relationships, and personal growth.</li><li>Insights on building sustainable habits and creating a life of intentionality.</li></ul><p>Unlike traditional self-help guides, this book immerses you in Alex’s journey — a relatable protagonist whose struggles mirror your own. Through Alex’s story, you’ll learn practical skills and gain the motivation to transform your relationship with time.</p><p>If you’re ready to move from chaos to control and reclaim your time, this book is your perfect companion. Whether you’re a professional, student, or simply someone looking for balance, Mastering Time will guide you toward a more focused, fulfilling life.</p><p>Read the full book:</p><p><a href="https://www.amazon.com/dp/B0DSJRTL78">Mastering Time: A Journey from Chaos to Control</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6396a376f67d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Embracing Change: Turning Challenges into Opportunities]]></title>
            <link>https://medium.com/@apulkit674/embracing-change-turning-challenges-into-opportunities-dd432d634e6c?source=rss-f9735754d2d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd432d634e6c</guid>
            <category><![CDATA[challenges-in-life]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[opportunity]]></category>
            <category><![CDATA[change]]></category>
            <category><![CDATA[change-your-life]]></category>
            <dc:creator><![CDATA[Pulkit Arora]]></dc:creator>
            <pubDate>Sun, 26 Jan 2025 13:12:21 GMT</pubDate>
            <atom:updated>2025-01-26T13:12:21.993Z</atom:updated>
            <content:encoded><![CDATA[<p>Change is inevitable. Whether it arrives as an unwelcome disruption or an exciting new beginning, it challenges us to adapt, grow, and redefine our paths. “Embracing Change: Turning Challenges into Opportunities” is your guide to not only surviving change but thriving because of it.</p><p>Drawing from real-life stories, proven strategies, and timeless wisdom, this book offers a transformative framework to navigate life’s uncertainties. Each chapter builds on the last, creating a journey that takes you from resisting change to celebrating it as a catalyst for growth.</p><p>What You’ll Discover in This Book:</p><ul><li>The Nature of Change: Understand why change feels so disruptive and how to overcome the fear of the unknown.</li><li>Navigating Emotions: Learn how to process grief, anxiety, and hope while building emotional resilience.</li><li>Reframing Uncertainty: Transform the fear of the unknown into a sense of curiosity and possibility.</li><li>Cultivating a Growth Mindset: Embrace failure as a teacher and develop the mental habits that drive success.</li><li>Shifting Perspectives: See challenges as opportunities through practical techniques that reshape your outlook.</li><li>Building a Support System: Create and nurture relationships that empower you during transitions.</li><li>Practical Habits for Change: Establish daily routines that keep you grounded and adaptable in times of flux.</li><li>Self-Compassion: Replace self-criticism with kindness, fostering resilience from within.</li></ul><p>Why This Book Matters Now</p><p>In a fast-paced, unpredictable world, the ability to adapt has never been more critical. Whether you’re navigating career changes, personal challenges, or global shifts, “Embracing Change” equips you with the tools to face transitions with confidence and optimism.</p><p>Who Should Read This Book?</p><p>This book is for anyone experiencing or anticipating change — whether in their career, relationships, or personal growth. It’s for dreamers, doers, and those who feel stuck, offering a roadmap to transform challenges into stepping stones toward a more fulfilling life.</p><p>A Journey of Transformation</p><p>By the end of this book, you won’t just accept change — you’ll embrace it. Armed with actionable insights and inspiring examples, you’ll feel empowered to turn life’s uncertainties into opportunities for reinvention and success.</p><p>Dive into “Embracing Change: Turning Challenges into Opportunities” and discover how every transition can be the start of something extraordinary.</p><p>Read the full book:</p><p><a href="https://www.amazon.com/dp/B0DSQ8X7JH">Embracing Change: Turning Challenges into Opportunities</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd432d634e6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Overcome Fear in Life: Conquer the Fears that Hold You Back from Achieving Success and…]]></title>
            <link>https://medium.com/@apulkit674/how-to-overcome-fear-in-life-conquer-the-fears-that-hold-you-back-from-achieving-success-and-1ea80c258cac?source=rss-f9735754d2d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ea80c258cac</guid>
            <category><![CDATA[overcome-fear-in-life]]></category>
            <category><![CDATA[fear-of-failure]]></category>
            <category><![CDATA[fear]]></category>
            <category><![CDATA[overcome-fear]]></category>
            <category><![CDATA[overcome-fear-of-failure]]></category>
            <dc:creator><![CDATA[Pulkit Arora]]></dc:creator>
            <pubDate>Sun, 26 Jan 2025 13:09:55 GMT</pubDate>
            <atom:updated>2025-01-26T13:09:55.642Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Overcome Fear in Life: Conquer the Fears that Hold You Back from Achieving Success and Happiness</h3><p>Fear is a universal emotion that has shaped my journey and, at times, limited my potential for success, happiness, and fulfillment. In <em>How to Overcome Fear in Life: Conquer the Fears that Hold You Back from Achieving Success and Happiness</em>, I explore the intricate nature of fear and share a comprehensive guide to breaking free from its grasp.</p><p>Drawing from my personal insights, real-life experiences, and actionable strategies, I address fear from multiple angles:</p><ul><li><strong>The Nature of Fear</strong>: I reflect on what fear truly is and how it manifests in our daily lives.</li><li><strong>Fear of Money</strong>: I share how to break free from financial anxiety and build a healthier relationship with wealth.</li><li><strong>Fear of Life</strong>: I explore embracing uncertainty and adapting to change with resilience and grace.</li><li><strong>Fear of Career</strong>: I discuss overcoming professional insecurity and unlocking your full potential in the workplace.</li><li><strong>Fear of Relationships</strong>: I reveal the importance of letting go of emotional insecurities to cultivate meaningful connections.</li><li><strong>Fear of Failure</strong>: I show how to transform setbacks into opportunities for growth and success.</li></ul><p>This book emphasizes the critical role of mindset in overcoming fear, offering practical tools and techniques I’ve used to cultivate courage, confidence, and emotional freedom. It culminates in a vision of living fearlessly, empowering you to step into a life filled with confidence, purpose, and lasting happiness.</p><p>If you’re grappling with personal fears, professional doubts, or life’s uncertainties, I invite you to join me on this transformative journey toward reclaiming your power and living boldly.</p><p>Read the full book:</p><p><a href="https://www.amazon.com/dp/B0DSF62BCR">How to Overcome Fear in Life: Conquer the Fears that Hold You Back from Achieving Success and Happiness</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ea80c258cac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mean, Median, and Mode]]></title>
            <link>https://medium.com/@apulkit674/mean-median-and-mode-1ad7701466f2?source=rss-f9735754d2d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ad7701466f2</guid>
            <category><![CDATA[mean]]></category>
            <category><![CDATA[weighted-mean]]></category>
            <category><![CDATA[trimmed-mean]]></category>
            <category><![CDATA[median]]></category>
            <category><![CDATA[mode]]></category>
            <dc:creator><![CDATA[Pulkit Arora]]></dc:creator>
            <pubDate>Sat, 15 Jun 2024 15:18:20 GMT</pubDate>
            <atom:updated>2024-06-15T15:18:20.070Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*uMfkAjSgr3ZyE-xZdfXJcw.jpeg" /></figure><h3>Median</h3><p>The <strong>median</strong> is the middle value in a dataset when arranged in ascending order.</p><h4>Case-1: For even number of observations</h4><p>If there is an even number of observations,<strong> the median is the average of the two middle values</strong>.</p><p>Consider a race with 6 participants and their respective finish times (in seconds):</p><p><em>40,45,42,38,39,41</em></p><p><strong>Step 1: Sort the data in ascending order:</strong></p><p>Sorting the finish times gives us:</p><p><em>38,39,40,41,42,45</em></p><p><strong>Step 2: Calculate the Median:</strong></p><p>Since there are 6 observations <strong>(an even number)</strong>, the median is the average of the two middle values.</p><p>Median=40+41 =81 =40.5</p><h4>Case-2: For odd number of observations</h4><p>When there is an odd number of observations, the median is simply the middle value in the sorted dataset.</p><p>Consider a race with participants and their respective finish times (in seconds):</p><p>40,45,42,38,39</p><p><strong>Step 1: Sort the data in ascending order:</strong></p><p>Sorting the finish times gives us:</p><p>38,39,40,42,45</p><p><strong>Step 2: Calculate the Median:</strong></p><p>Since there are 5 observations <strong>(an odd number)</strong>, the median is simply the middle value.</p><p>Median=40</p><p><strong>Note:</strong> The <strong>median</strong> is less affected by outliers because it only considers the middle value(s) of a dataset when sorted in ascending order. Outliers have no impact on the median as long as they don’t affect the position of the middle value(s).</p><h3>Mode</h3><p>The <strong>mode</strong> is the value that appears most frequently in a dataset.</p><p>Example:</p><p>Consider the outcomes of rolling a dice: 3, 5, 2, 6, 3, 4, 3.</p><p>So, <strong>Mode = 3</strong> (since 3 appears most frequently).</p><p><strong>Note:</strong> The <strong>mode</strong> is the most robust against outliers because it represents the most frequently occurring value(s) in a dataset. Outliers that occur only once or infrequently have minimal impact on the mode.</p><p><a href="https://infronx.com/sample-vs-population-and-measures-of-central-tendency/">View More:</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ad7701466f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exceptional Handling in Python]]></title>
            <link>https://medium.com/@apulkit674/exceptional-handling-in-python-b7d58ea717a7?source=rss-f9735754d2d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7d58ea717a7</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[try-statemene]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[exceptional-handling]]></category>
            <dc:creator><![CDATA[Pulkit Arora]]></dc:creator>
            <pubDate>Sun, 12 May 2024 14:25:19 GMT</pubDate>
            <atom:updated>2024-05-12T14:25:19.572Z</atom:updated>
            <content:encoded><![CDATA[<p>Exception handling is a crucial aspect of any programming language, and Python is no exception (pun intended). Exception handling allows you to gracefully manage and respond to unexpected errors or exceptional situations that may arise during the execution of a program. In this blog post, we’ll delve into the basics of exception handling in Python, explore the <strong>`try`, `except`, `else`, and `finally` blocks</strong>, and provide real-life examples to illustrate these concepts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OvwfG6z_VUllfUyv-2wlPA.png" /></figure><p><a href="https://infronx.com/exception-handling-in-python-a-comprehensive-guide/">Read More:</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7d58ea717a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Map, Filter, Reduce Functions in Python3]]></title>
            <link>https://medium.com/@apulkit674/map-filter-reduce-functions-in-python3-2d66a626543b?source=rss-f9735754d2d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d66a626543b</guid>
            <category><![CDATA[filter-function]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[functions-in-python]]></category>
            <category><![CDATA[map-function]]></category>
            <category><![CDATA[reduce-function]]></category>
            <dc:creator><![CDATA[Pulkit Arora]]></dc:creator>
            <pubDate>Sun, 12 May 2024 14:23:42 GMT</pubDate>
            <atom:updated>2024-05-12T14:23:42.049Z</atom:updated>
            <content:encoded><![CDATA[<p>In the world of Python coding, there are three special helpers: <strong>map, filter, and reduce</strong>. They’re like handy tools that can make your coding life easier. Map can quickly change a bunch of things, filter can sift through stuff to find what you need, and reduce can combine things into one. Let’s take a closer look at how these simple functions can do some amazing stuff in Python.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yls4r7dU8YJAnLT5sJvO1A.png" /></figure><p><a href="https://infronx.com/unlocking-the-power-of-map-filter-reduce-functions/">Read More:</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d66a626543b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[itiComposition in Python3]]></title>
            <link>https://medium.com/@apulkit674/iticomposition-in-python3-859e42e5e925?source=rss-f9735754d2d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/859e42e5e925</guid>
            <category><![CDATA[composition]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[oop-concepts]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Pulkit Arora]]></dc:creator>
            <pubDate>Sun, 12 May 2024 14:22:19 GMT</pubDate>
            <atom:updated>2024-05-12T14:22:19.893Z</atom:updated>
            <content:encoded><![CDATA[<h3>Composition in Python3</h3><p>In the vast landscape of Python programming, composition emerges as a fundamental concept in object-oriented design, offering developers a powerful tool to create robust, modular, and maintainable code. Through the clever combination of simpler components, composition empowers developers to build complex objects with ease, promoting code reusability, flexibility, and clarity. In this comprehensive guide, we embark on an exploration of composition in Python, unraveling its principles, applications, and benefits through a series of illustrative examples.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*adWkPWhENPKIoVvo_k-qiA.png" /></figure><p><a href="https://infronx.com/composition-in-python-3-a-comprehensive-guide/">Read More:</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=859e42e5e925" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Inheritance and its Types in Python]]></title>
            <link>https://medium.com/@apulkit674/inheritance-and-its-types-in-python-77eaa2720139?source=rss-f9735754d2d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/77eaa2720139</guid>
            <category><![CDATA[types-of-inheritance]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[oops-concepts]]></category>
            <category><![CDATA[inheritance]]></category>
            <dc:creator><![CDATA[Pulkit Arora]]></dc:creator>
            <pubDate>Fri, 03 May 2024 13:09:17 GMT</pubDate>
            <atom:updated>2024-05-03T13:10:09.099Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UFyySGq8YEfEFkBTT88lOA.png" /></figure><p>Inheritance is a powerful feature of <a href="https://infronx.com/object-oriented-programming-in-python/">object-oriented programming (OOP)</a> that allows a class to inherit attributes and methods from another class. Python supports multiple types of inheritance, each serving specific programming needs. In this comprehensive guide, we’ll explore various types of inheritance in Python, accompanied by illustrative examples to deepen your understanding.</p><p><a href="https://infronx.com/types-of-inheritance-in-python-a-comprehensive-guide/">Read More:</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77eaa2720139" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>