<?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 Archana R Mulge on Medium]]></title>
        <description><![CDATA[Stories by Archana R Mulge on Medium]]></description>
        <link>https://medium.com/@archanamulgeaa?source=rss-a15d3174bfc4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*8mGhlSRNgExcm09_</url>
            <title>Stories by Archana R Mulge on Medium</title>
            <link>https://medium.com/@archanamulgeaa?source=rss-a15d3174bfc4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 10:20:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@archanamulgeaa/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[OOP Part-5: Building a Real Mini Project — Where All OOP Concepts Finally Click Together]]></title>
            <link>https://python.plainenglish.io/oop-part-5-building-a-real-mini-project-where-all-oop-concepts-finally-click-together-b74495847673?source=rss-a15d3174bfc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b74495847673</guid>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[oop-concepts]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Archana R Mulge]]></dc:creator>
            <pubDate>Sun, 23 Nov 2025 15:26:46 GMT</pubDate>
            <atom:updated>2025-11-26T16:35:15.319Z</atom:updated>
            <content:encoded><![CDATA[<h3>OOP Part-5: Building a Real Mini Project — Where All OOP Concepts Finally Click Together</h3><p>You’ve learned the concepts.</p><p>You’ve understood the theory.</p><p>You’ve explored examples.</p><p>Now it’s time for the moment every learner waits for:</p><p><strong>Putting everything together in one real, working system.</strong></p><p>This is the point where OOP stops feeling like “topics”… and starts feeling like <em>architecture</em>.</p><h4>Why a Mini Project Matters More Than 100 Examples</h4><p>Understanding classes, inheritance, and polymorphism in isolation is helpful…</p><p>But seeing them work together transforms your perspective.</p><p>Because real software looks like this:</p><ul><li>Data inside classes</li><li>Protected attributes</li><li>Parent → child class structure</li><li>Common method names</li><li>Different behaviors for different objects</li></ul><p>One combined structure — just like real backend systems.</p><h4>Our Final Project: Library Management System (Mini Version)</h4><p>A clean, practical example that touches everything:</p><ul><li>Books</li><li>Members</li><li>Borrowing</li><li>Overriding rules</li><li>Data protection</li><li>Organized class relationships</li></ul><p>Let’s build it.</p><h4>Step 1: The Base Class — <em>Book</em></h4><pre>class Book:<br>  def __init__(self, title, author, copies):<br>    self.title = title<br>    self.author = author<br>    self.__copies = copies #encapsulated<br><br>  def get_info(self):<br>    return f&quot; {self.title} by {self.author}&quot;<br><br>  def get_copies(self):<br>    return self.__copies<br><br>  def borrow(self):<br>    if self.__copies &gt; 0:<br>       self.__copies -= 1<br>       return True<br>    return False<br><br>  def return_book(self):<br>    self.__copies += 1</pre><h4>Step 2: Child Classes with Polymorphism</h4><p><em>Different categories — different rules.</em></p><pre>class Fiction(Book):<br>  def get_info(self):<br>    return f&quot;[Fiction] {self.title} - {self.author}&quot;<br><br>class Science(Book):<br>  def get_info(self):<br>    return f&quot;[Science] {self.title} - {self.author}&quot;</pre><h4>Step 3: Member Class</h4><pre>class Member:<br>  def __init__(self, name):<br>     self.name = name<br>     self.borrowed = []<br><br>def borrow_book(self, book):<br>  if book.borrow():<br>    self.borrowed.append(book.title)<br>    print(f&quot; {self.name} borrowed: {book.title}&quot;)<br>  else:<br>    print(f&quot; {book.title} is not available.&quot;)<br><br>def return_book(self, book):<br>  if book.title in self.borrowed:<br>     book.return_book()<br>     self.borrowed.remove(book.title)<br>     print(f&quot; {self.name} returned: {book.title}&quot;)<br>    </pre><h4>Step 4: Running the System Together</h4><pre>b1 = Fiction(&quot;Harry Potter&quot;, &quot;J.K. Rowling&quot;, 2)<br>b2 = Science(&quot;A Brief History of Time&quot;, &quot;Stephen Hawking&quot;, 1)<br><br>m1 = Member(&quot;Krishna&quot;)<br><br>print(b1.get_info())<br>print(b2.get_info())<br><br>m1.borrow_book(b1)<br>m1.borrow_book(b2)<br>m1.borrow_book(b2) #unavailable<br><br>m1.return_book(b2)</pre><p>This single piece shows:</p><ul><li><strong>Encapsulation</strong> — copies hidden</li><li><strong>Inheritance</strong> — Fiction &amp; Science inherit Book</li><li><strong>Polymorphism</strong> — same get_info() name, different output</li><li><strong>Objects working together</strong> to form a real system</li></ul><p>This is exactly how backend modules work in real applications.</p><h4>Why this matters for your developer journey</h4><p>At this point, you’re no longer “learning OOP”.</p><p>You’re practicing the same structural thinking used in:</p><ul><li>Flask/Django apps</li><li>Inventory systems</li><li>Banking applications</li><li>E-commerce carts</li><li>Machine Learning class-based models</li><li>Any object-centric architecture</li></ul><p>You are stepping into a more advanced way of thinking — the way real software engineers design systems.</p><h4>Final Takeaway</h4><p>We’ve completed:</p><ol><li><strong>Classes &amp; Objects</strong></li><li><strong>Encapsulation</strong></li><li><strong>Inheritance</strong></li><li><strong>Polymorphism</strong></li><li><strong>A full OOP-based mini project</strong></li></ol><p>This is a full OOP foundation, the level every SDE, backend beginner, or Python developer needs before touching frameworks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H8_REG2SDZMvVJWo61M4Xw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b74495847673" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/oop-part-5-building-a-real-mini-project-where-all-oop-concepts-finally-click-together-b74495847673">OOP Part-5: Building a Real Mini Project — Where All OOP Concepts Finally Click Together</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OOP Part-4: Polymorphism — Same Name, Different Result. The Most Beautiful Magic of OOP.]]></title>
            <link>https://python.plainenglish.io/oop-part-4-polymorphism-same-name-different-result-the-most-beautiful-magic-of-oop-c76237fb9c30?source=rss-a15d3174bfc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c76237fb9c30</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[oops-concepts]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Archana R Mulge]]></dc:creator>
            <pubDate>Sat, 22 Nov 2025 05:06:23 GMT</pubDate>
            <atom:updated>2025-11-26T16:35:05.485Z</atom:updated>
            <content:encoded><![CDATA[<h3>OOP Part-4: Polymorphism — Same Name, Different Result. The Most Beautiful Magic of OOP.</h3><p>If you think inheritance was powerful… Polymorphism is the moment OOP becomes elegant.</p><p>Because in real life, we often say <strong>the same sentence</strong>, but the meaning changes based on <em>who</em> is speaking.</p><p>Example:</p><ul><li>“Run” — when a child says it, they mean running in a playground</li><li>“Run” — when a developer says it, they mean running a program</li><li>“Run” — when a machine operator says it, they mean running a machine</li></ul><p>Same word. Different behavior. That is Polymorphism.</p><h4>Simple English Meaning</h4><p>Polymorphism — Same method/function name behaves differently in different classes</p><p>Method Overriding — Child class gives new behavior to a method inherited from parent.</p><p>Duck Typing — If something behaves like X, we treat it as X — type doesn’t matter.</p><p>Polymorphism gives flexibility.</p><p>It makes systems expandable without breaking old code.</p><h4>Python Example — Method Overriding</h4><pre>class Bird:<br>  def fly(self):<br>    return &quot;Birds can fly&quot;<br><br>class Penguin(Bird):<br>  def fly(self):<br>    return &quot;Penguins cannot fly&quot;<br><br>#USAGE<br><br>b = Bird()<br>p = Penguin()<br><br>print(b.fly()) #Birds can fly<br>print(p.fly()) #Penguins cannot fly<br><br>#Same method name - fly()<br>#Different output</pre><h4>Real-World Application</h4><p>When you use:</p><pre>model.fit()<br>model.predict()</pre><p>in machine learning, every model (SVM, Logistic Regression, Random Forest) uses the <strong>same method names</strong> fit() and predict().</p><p>But inside, completely different math is happening.</p><p>That is polymorphism in everyday Python.</p><h4>Duck Typing — The coolest part</h4><p>Python doesn’t care about the object’s class name.</p><p>It only cares if the object has the required behavior.</p><p>Example:</p><pre>class cat:<br>  def sound(self):<br>    return &quot;Meow&quot;<br><br>class Dog:<br>  def sound(self):<br>    return &quot;Bark&quot;<br><br>def make_sound(animal):<br>  print(animal.sound())<br><br>make_sound(Cat())<br>make_sound(Dog())</pre><p>We didn’t ask:</p><ul><li>is this Dog?</li><li>is this Cat?</li></ul><p>We only trust that if it has .sound() — it will work.</p><p>That is what makes Python extremely flexible.</p><h4>Key Takeaways</h4><ul><li>Polymorphism allows same method name different implementation.</li><li>Overriding gives child classes control over behavior.</li><li>Duck typing Python dynamic and powerful.</li><li>This concept is used everywhere, ML models, GUI frameworks, backend APIs.</li></ul><p>This is how real-world software stays consistent on the outside, while evolving internally.</p><h4>Next — the final part (Part-5)</h4><p>We bring everything together into a mini project.</p><p>You’ve now studied:</p><ul><li>Classes &amp; Objects</li><li>Encapsulation</li><li>Inheritance</li><li>Polymorphism</li></ul><p>Now Part-5 will show <strong>all of them combined in one simple system.</strong></p><p>This final piece is where you’ll truly “feel” OOP in action, not as a topic, but as an engineering pattern.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T5rcmP9kIptmSQhQA0Pttw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c76237fb9c30" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/oop-part-4-polymorphism-same-name-different-result-the-most-beautiful-magic-of-oop-c76237fb9c30">OOP Part-4: Polymorphism — Same Name, Different Result. The Most Beautiful Magic of OOP.</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OOP Part-3: Inheritance — Reusing Logic Instead of Rewriting It]]></title>
            <link>https://python.plainenglish.io/oop-part-3-inheritance-reusing-logic-instead-of-rewriting-it-6d4765aa75e6?source=rss-a15d3174bfc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d4765aa75e6</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[oops-concepts]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Archana R Mulge]]></dc:creator>
            <pubDate>Mon, 10 Nov 2025 09:03:32 GMT</pubDate>
            <atom:updated>2025-11-10T15:23:30.353Z</atom:updated>
            <content:encoded><![CDATA[<h3>OOP Part-3: Inheritance — Reusing Logic Instead of Rewriting It</h3><p>Imagine this for a moment.</p><p>If every time a new baby is born, humans had to “re-invent” how to walk, how to talk, how to talk, how to breathe, life would collapse.</p><p>We evolve by inheriting traits.</p><p>Software is the same.</p><p><strong><em>Inheritance allows one class to reuse features of another class instead of starting from zero.</em></strong></p><p>This one principle changes how we build applications because it prevents repetition, reduces code length, and makes systems scalable.</p><h4>The simple idea</h4><ol><li>Parent / Base Class: Original class that holds common features</li><li>Child / Derived Class: New class that “inherits” features from parent</li><li>super(): Used to call parent constructor or methods</li></ol><p>The child class gets all the parent’s capabilities for free and can also add more features or override existing ones.</p><h4>Why Inheritance exists in real engineering</h4><p>Think of real world product lines:</p><ul><li>iPhone 15: evolved from 14</li><li>BMW X6: evolved from X5</li><li>Gmail features: built on old versions</li></ul><p>They didn’t rewrite everything each generation.</p><p>They extended existing logic</p><p>Inheritance gives that power to software.</p><h4>Python Example</h4><pre>#Base Class<br><br>class Animal:<br>  def sound(self):<br>    return &quot;Some sound&quot;<br><br>#Child Class inheriting Parent<br><br>class Dog(Animal):<br>   def sound(self):<br>     return &quot;Bark&quot;<br><br>#Usage<br>d = Dog()<br>print(d.sound())</pre><p>Even though Dog didn’t write everything from scratch, it inherited the structure of Animal, and then customized the behavior.</p><h4>Types of Inheritance in Python</h4><ol><li>Single: One parent — one child</li><li>Multilevel: Parent — Child — Grandchild</li><li>Multiple: Child inherits from multiple parents</li></ol><p>Modern architectures use these combinations for modular design.</p><h4>Why Inheritance matters in today’s software world</h4><ul><li>Reduces code duplication</li><li>Helps create reusable frameworks</li><li>Makes upgrades easier</li><li>Keeps code clean &amp; compact</li></ul><p>Even ML libraries, game engines, Flask/Django internal classes, all use inheritance behind the scenes.</p><p>When this clicks, you stop coding like a beginner, and start building like a framework designer.</p><h4>Key Takeaway</h4><p>Inheritance gives you <strong>continuity</strong> in design.</p><p>You don’t rebuild systems, you <strong>extend</strong> them.</p><p>Right now, you’re stepping into a level where your code can grow without chaos.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sy21Kjuo4woAq5XTIfXG4Q.jpeg" /></figure><h4>Next in Part-4 — Polymorphism</h4><p>This is where different classes use the <strong>same method name</strong> but behave differently.</p><p>You’ll realize functions and objects can feel like actors, same dialogue, different emotion.</p><p>Get ready, this is where your OOP understanding becomes truly powerful.</p><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d4765aa75e6" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/oop-part-3-inheritance-reusing-logic-instead-of-rewriting-it-6d4765aa75e6">OOP Part-3: Inheritance — Reusing Logic Instead of Rewriting It</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OOP Part-2: Encapsulation — The Art of Protecting Your Data Like a Professional]]></title>
            <link>https://python.plainenglish.io/oop-part-2-encapsulation-the-art-of-protecting-your-data-like-a-professional-4fed16105e83?source=rss-a15d3174bfc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fed16105e83</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[oop-concepts]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Archana R Mulge]]></dc:creator>
            <pubDate>Mon, 10 Nov 2025 04:04:46 GMT</pubDate>
            <atom:updated>2025-11-11T04:26:41.460Z</atom:updated>
            <content:encoded><![CDATA[<h3>OOP Part-2: Encapsulation — The Art of Protecting Your Data Like a Professional</h3><p>There’s a moment in every developer’s journey where you realize.</p><p><strong>Not every variable should be open to the entire world.</strong></p><p>Just like in real life not every detail about you is public.</p><p>Some things are <em>personal</em>.</p><p>Some things have controlled access.</p><p>Some things should only be changed in a safe manner.</p><p>Software is the same.</p><p>Encapsulation is the idea of keeping data safe and controlled inside the object.</p><p>This is how professional software avoids damage, misuse, and accidental overwriting.</p><h4><strong>Why Encapsulation is one of the most underrated superpowers</strong></h4><p>When we start coding fresh, we happily declare variables everywhere.</p><p>But as the codebase grows multiple functions start touching the same data.</p><p>Soon, the system becomes fragile:</p><ul><li>One wrong assignment</li><li>One careless update</li><li>One accidental change</li></ul><p>and the output becomes unpredictable.</p><p>Encapsulation solves this.</p><h4>Simple English Meaning</h4><p><strong>Encapsulation</strong>: wrapping data + methods together and controlling access</p><p><strong>Public Attribute</strong>: anyone can access it</p><p><strong>Private Attribute</strong>: only internal methods should touch it</p><p><strong>Getter &amp; Setter</strong>: safe doors to read and update the value</p><p>This is not “syntax complexity”.</p><p>This is <strong>software safety</strong>.</p><h4>Python Example: Without and With Encapsulation</h4><p><strong><em>Without Encapsulation</em></strong></p><pre>class Bank:<br>  def __init__(self):<br>    self.balance = 1000<br><br>acc = Bank()<br>acc.balance = -9999 #anyone can change!<br>print(acc.balance)<br><br>#This is dangerous.</pre><p><strong><em>With Encapsulation</em></strong></p><pre>class Bank:<br>  def __init__(self):<br>    self.__balance = 1000 #private<br><br>  def get_balance(self):<br>    return self.__balance<br><br>  def deposit(self, amount):<br>    if amount &gt; 0:<br>      self.__balance += amount<br><br>acc = Bank()<br>acc.deposit(500)<br>print(acc.get_balance())</pre><p>Here, the balance is protected.</p><p>Changes happen <em>inside controlled methods.</em></p><h4>Where you see this in real life</h4><p>Banks don’t allow someone to change their account balance by directly editing a variable.</p><p>Hospitals don’t allow direct editing of medical records.</p><p>Companies don’t allow anyone to change salary by modifying a JSON file.</p><p>Everything is controlled through APIs, that’s encapsulation in action.</p><h4>Key Takeaways</h4><ul><li>Encapsulation protects the object from misuse</li><li>Private attributes prevent direct manipulation</li><li>Getters &amp; Setters offer safe access points</li><li>This principle is the foundation of API design in real products</li></ul><p>This is how software becomes robust, secure, and maintainable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M25eK55ioqEHggIt7NdgoQ.png" /></figure><h4>Next in Part-3: Inheritance</h4><p>This is where objects learn to <strong>reuse and “extend” behaviors</strong>.</p><p>It’s the feature that prevents rewriting the same code again and again.</p><p>We’ll go deeper into how classes can pass traits to other classes just like families in real life.</p><p>Stay prepared — the architect mindset is activating step by step📌</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fed16105e83" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/oop-part-2-encapsulation-the-art-of-protecting-your-data-like-a-professional-4fed16105e83">OOP Part-2: Encapsulation — The Art of Protecting Your Data Like a Professional</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OOP Part-1: Classes & Objects — Where Python Stops Being “Just Code” and Starts Becoming…]]></title>
            <link>https://python.plainenglish.io/oop-part-1-classes-objects-where-python-stops-being-just-code-and-starts-becoming-039a0deffeb7?source=rss-a15d3174bfc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/039a0deffeb7</guid>
            <category><![CDATA[oops-concepts]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Archana R Mulge]]></dc:creator>
            <pubDate>Sun, 09 Nov 2025 05:02:13 GMT</pubDate>
            <atom:updated>2025-11-09T08:14:36.391Z</atom:updated>
            <content:encoded><![CDATA[<h3>OOP Part-1: Classes &amp; Objects — Where Python Stops Being “Just Code” and Starts Becoming Architecture</h3><p>There is a moment in programming where everything suddenly shifts.</p><p>Until a point, Python feels like small tasks:</p><ul><li>print statement</li><li>variables</li><li>loops</li><li>functions</li><li>file handling</li></ul><p>…but then one day, you look at your script and it starts feeling messy.</p><p>Too many functions.</p><p>Too many flags.</p><p>Too many parameters.</p><p>This is the moment real developers meet Object Oriented Programming (OOP).</p><p>This is not “just another topic” in Python.</p><p>This is the transition from writing code to designing software.</p><h4>A related moment — my turning point</h4><p>When I was building a small “Students Marks Calculator”, everything worked fine when I had only one student.</p><p>But when I tried to store 100 students?</p><p>I ended up rewriting the same variables again and again.</p><p>One change in one part broke another part.</p><p>That was the moment I realized:</p><p>Functions alone are not enough.</p><p>We need <em>structure</em>.</p><p>We need a way to group related data + related logic together.</p><p>That is exactly where <em>classes</em> change the game.</p><h4>So, what is Class — in the simplest English?</h4><p>A Class is a <strong>blueprint</strong>.</p><p>An Object is a <strong>real item created from that blueprint.</strong></p><p>Think in real life:</p><ul><li><strong>Class</strong> — Mobile Phone Design</li><li><strong>Object</strong> — Samsung S24, iPhone 16</li></ul><p>Different objects.</p><p>Same design foundation.</p><p>That’s how OOP makes programming feel like engineering.</p><h4>How Classes work in Python</h4><pre>class Car:<br>  def __init__(self, brand, model):<br>    self.brand = brand<br>    self.model = model<br><br>c1 = Car(&quot;BMW&quot;, &quot;X5&quot;)<br>c2 = Car(&quot;Tesla&quot;, &quot;Model S&quot;)<br><br>print(c1.brand, c1.model)<br>print(c2.brand, c2.model)</pre><h4>Keyword / Concept Meaning</h4><ul><li>class — We are defining a blueprint</li><li>__init__ — Constructor runs automatically when object is created</li><li>self — Reference to the CURRENT object</li><li>c1 / c2 — Objects created from the same class</li></ul><h4>Why Classes matter today — not just in theory</h4><p>Look around:</p><ul><li>Netflix profiles</li><li>Zomato carts</li><li>Amazon products</li><li>Instagram user accounts</li></ul><p>They are all Objects.</p><p>There is no enterprise-level software without Objects.</p><p>Even Machine Learning Models you import in scikit-learn are <strong>Classes under the hood.</strong></p><p>Example:</p><pre>from sklearn.liner_model import LogisticRegression<br>model = LogisticRegression()</pre><p>“model” is an Object.</p><h4>How OOP changes a developer’s mind</h4><p>Before OOP — we think in tasks.</p><p>After OOP — we think in systems.</p><p>And that mindset is what companies hire.</p><p>Because OOP teaches:</p><ul><li>modular design</li><li>reusability</li><li>maintainability</li><li>scalability</li></ul><p>These are not theoretical words.</p><p>These are the exact words in real job descriptions.</p><p>This is why starting OOP now is a forward move.</p><h4>Quick mental picture to remember</h4><p><strong><em>Without OOP</em></strong></p><ul><li>scattered logic</li><li>variables everywhere</li><li>code breaks easily</li><li>code written fast but messy</li></ul><p><strong><em>With OOP</em></strong></p><ul><li>organized modules</li><li>data lives inside objects</li><li>code written smart and future-proof</li></ul><h4><strong>Key Takeaways (Actionable)</strong></h4><ul><li>Classes are not syntax — they are design patterns</li><li>Objects are not variables — they are real “things” in your application</li><li>OOP is the moment where you stop writing scripts and start building software</li><li>Every big application you admire is object-based</li></ul><p>When this concept clicks your entire coding style transforms.</p><h4>What’s next in this OOP series?</h4><p>Part-2 will go into <strong>Encapsulation</strong> — data protection, attribute control, public/private, getters/setters, the foundation of clean API design.</p><p>This is where things start feeling truly professional.</p><p>Keep the curiosity open because this OOP journey is exactly what prepares us for SDE level thinking.</p><h4>Final note</h4><p>You are not “Learning Python” anymore.</p><p>You are entering the engineering mindset step by step.</p><p>Small chapters.</p><p>Sharp clarity.</p><p>Compound growth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hzb_tPnU7BkqwOCS7PkYhQ.jpeg" /></figure><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=039a0deffeb7" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/oop-part-1-classes-objects-where-python-stops-being-just-code-and-starts-becoming-039a0deffeb7">OOP Part-1: Classes &amp; Objects — Where Python Stops Being “Just Code” and Starts Becoming…</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Final Project & Next Steps — Become a Python Pro!]]></title>
            <link>https://python.plainenglish.io/final-project-next-steps-become-a-python-pro-69359c2b1cdd?source=rss-a15d3174bfc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/69359c2b1cdd</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Archana R Mulge]]></dc:creator>
            <pubDate>Sun, 02 Nov 2025 13:52:55 GMT</pubDate>
            <atom:updated>2025-11-08T08:02:16.924Z</atom:updated>
            <content:encoded><![CDATA[<h3>🏁Final Project &amp; Next Steps — Become a Python Pro!🚀</h3><p><strong><em>Python Series (18/18)</em></strong></p><p>Congratulations, coder! 🎆</p><p>We’ve reached the <strong>final chapter</strong> of the Python Series, a true milestone moment.</p><p>From the basics of syntax to advanced automation, you’ve built a solid foundation in Python.</p><p>Now, it’s time to <strong>blend everything you’ve learned</strong>, APIs, JSON, OOPs, and automation into one final, practical project.</p><p>Let’s celebrate our progress by creating something <em>real, powerful, </em>and<em> fun!</em>💪</p><h4>🎯The Goal: Build a “Weather Dashboard with Automation”</h4><p>We’ll create a simple yet smart <strong>Weather Dashboard App</strong> that:</p><p>✅Fetches real-time weather data using an <strong>API</strong>.</p><p>✅Stores the data locally for record-keeping.</p><p>✅Automatically sends a daily summary via <strong>email</strong>.</p><p>You’ll use:</p><ul><li>requests (for APIs)</li><li>json (for data handling)</li><li>smtplib (for emails)</li><li>schedule (for automation)</li></ul><p>Let’s roll! 🌤️</p><h4>🌎Step 1: Get Real-Time Weather Data</h4><p>We’ll use the <strong>OpenWeatherMap</strong> <strong>API</strong> again.</p><p>👉Get your free API key from <em>openweathermap.org/api</em></p><pre>import requests<br>import json<br><br>API_KEY = &quot;your_api_key&quot;<br>CITY = &quot;Bangalore&quot;<br><br>def get_weather():<br>  url = f&quot;https://api.openweathermap.org/data/2.5/weather?q={CITY}&amp;appid={API_KEY}&amp;units=metric&quot;<br>  response = requests.get(url)<br>  data = response.json()<br>  <br>  if response.status_code == 200:<br>    weather_data = {<br>      &quot;city&quot;: CITY,<br>      &quot;temp&quot;: data[&quot;main&quot;][&quot;temp&quot;],<br>      &quot;condition&quot;: data[&quot;weather&quot;][0][&quot;description&quot;].title()<br>    }<br>    print(f&quot;Weather fetched for {CITY}: {weather_data[&#39;temp&#39;]} Degree Celsius, {weather_data[&#39;condition&#39;]}&quot;)<br>    return weather_data<br>  else:<br>    print(&quot;Failed to fetch data!&quot;)<br>    return None</pre><h4>💾Step 2: Save Data Locally</h4><p>Let’s store daily weather logs in a local file for record-keeping.</p><pre>def save_weather(data):<br>  with open(&quot;weather_log.json&quot;, &quot;a&quot;) as file:<br>    json.dump(data, file)<br>    file.write(&quot;\n&quot;)<br>  print(&quot;Weather data saved locally!&quot;)</pre><h4>📧Step 3: Send Daily Weather Report via Email</h4><p>We’ll automate an email report to send weather updates every morning.</p><pre>import smtplib<br>from email.message import EmailMessage<br><br>def send_email(weather_data):<br>  email = EmailMessage()<br>  email[&#39;from&#39;] = &#39;Python Weather Bot&#39;<br>  email[&#39;to&#39;] = &#39;receiver@example.com&#39;<br>  email[&#39;subject&#39;] = f&quot;Daily Weather Update for {weather_data[&#39;city&#39;]}&quot;<br> <br>  content = f&quot;&quot;&quot;<br>  Good Morning!<br>  Today&#39;s Weather in {weather_data[&#39;city&#39;]}:<br>    Temperature: {weather_data[&#39;temp&#39;]} Degree Celsius<br>    Condition: {weather_data[&#39;condition&#39;]}<br>  <br>  Have a great day ahead!<br>  &quot;&quot;&quot;<br>  email.set_content(content)<br><br>  with smtplib.SMTP(host=&#39;smtp.gmail.com&#39;, port=587) as smtp:<br>    smtp.starttls()<br>    smtp.login(&#39;your_email@gmail.com&#39;, &#39;your_app_password&#39;)<br>    smtp.send_message(email)<br><br>    print(&quot;Email sent successfully!&quot;)</pre><h4>⏱️Step 4: Automate the Task</h4><p>Now, let’s schedule this whole workflow to run every day at 7 AM.</p><pre>import schedule<br>import time<br><br>def job():<br>  weather = get_weather()<br>  if weather:<br>     save_weather(weather)<br>     send_email(weather)<br><br>schedule.every().day.at(&quot;07:00&quot;).do(job)<br><br>print(&quot;Schedule running...(press Ctrl+C to stop)&quot;)<br><br>while True:<br>  schedule.run_pending()<br>  time.sleep(60)</pre><p><em>🎯You now have a complete automated system!</em></p><p>Every day, your script will fetch weather data, save it, and send you an email summary automatically.</p><h4>💡What You’ve Learned</h4><p>By completing this final project, you’ve applied:</p><p>✔️<strong>APIs </strong>— Communicating with the web</p><p>✔️<strong>JSON</strong> — Handling structured data</p><p>✔️<strong>File Handling</strong> — Saving records</p><p>✔️<strong>Automation </strong>— Scheduling tasks</p><p>✔️<strong>Email &amp; Notifications</strong> — Real-world interactivity</p><p>You’ve just proven that you can <strong>build end-to-end Python solutions</strong> from logic to live automation.🧠</p><h4>🔮What’s Next for You</h4><p>Your journey doesn’t end here, it <em>evolves!</em></p><p>Here’s where you can go next🚀</p><p><strong>1️⃣ Deep Dive into OOPs</strong></p><p>Understand <em>design patterns, SOLID principles, and real-world architecture.</em></p><p><strong>2️⃣ Explore Advanced Fields</strong></p><ul><li><strong>Data Science</strong> -&gt; Learn Pandas, Numpy, Matlotlib</li><li><strong>AI/ML</strong> -&gt; Try Scikit-learn, TensorFlow, or PyTorch</li><li><strong>Web Development</strong> -&gt; Master Flask or Django</li><li><strong>Automation Tools</strong> -&gt; Learn Selenium, PyAutoGUI, or FastAPI</li></ul><p><strong>3️⃣ Build Projects that Shine</strong></p><p>Start small, but keep it real, like:</p><ul><li>AI Resume Analyzer</li><li>Automated YouTube Data Scraper</li><li>Personal Finance Tracker</li><li>Chatbot Assistant</li></ul><h4>🎉Final Words</h4><p>You started with <em>print(“Hello, World!”)</em> and ended up creating a program that <em>talks to APIs, automates tasks, and sends live data across the web!🌐</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1GmOUIjSYRyTiZmnF2EbTw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69359c2b1cdd" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/final-project-next-steps-become-a-python-pro-69359c2b1cdd">🏁Final Project &amp; Next Steps — Become a Python Pro!🚀</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[⚙️Automation with Python — Let Your Code Do the Work!]]></title>
            <link>https://python.plainenglish.io/%EF%B8%8Fautomation-with-python-let-your-code-do-the-work-b016793b1305?source=rss-a15d3174bfc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/b016793b1305</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Archana R Mulge]]></dc:creator>
            <pubDate>Sat, 01 Nov 2025 04:26:45 GMT</pubDate>
            <atom:updated>2025-11-01T08:32:12.249Z</atom:updated>
            <content:encoded><![CDATA[<h3>⚙️Automation with Python — Let Your Code Do the Work!🤖</h3><p><strong><em>Python Series (17/18)</em></strong></p><p>Welcome back, coder!🙋‍♀️</p><p>If you’ve followed along this far, you’ve already learned how to make Python <em>talk to the world</em> using APIs🌐.</p><p>Now, let’s flip the switch and make Python <em>work for you!</em></p><p>Automation is where Python truly shines, it can send emails, manage files, open browsers, organize data, and even remind you of your tasks, all without lifting a finger.✨</p><p>Let’s dive in and give your code a life of its own!⚡</p><h4>💡What Is Automation?</h4><p>Automation simply means <strong>making your computer perform tasks automatically</strong>, no manually effort, no clicks, just smart code.</p><p>Think of it like training a digital assistant that never gets tired.😎</p><p>You can automate things like:</p><p>✅Renaming multiple files</p><p>✅Sending reminder emails</p><p>✅Scraping web data</p><p>✅Scheduling reports</p><p>✅Cleaning folders</p><h4>📁1. File Management Automation</h4><p>Tired of manually organizing files? Let Python handle it.</p><pre>import os<br>import shutil<br><br>source = &quot;Downloads/&quot;<br>destination = &quot;Documents/Images/&quot;<br><br>for file in os.listdir(source):<br>   if file.endswith(&quot;.jpg&quot;) or file.endswith(&quot;.png&quot;):<br>     shutil.move(os.path.join(source, file), destination)<br><br>print(&quot;All images moved successfully!&quot;)</pre><p><strong><em>✨Concepts Used:</em></strong></p><ul><li>File handling with os</li><li>Moving files using shutil</li><li>Looping through directory content</li></ul><h4>📧2. Sending Automated Emails</h4><p>Want to send a daily update or reminder automatically?</p><p>Here’s how you can do it using Python’s built-in <strong>smtplib</strong>.</p><pre>import smtplib<br>from email.message import EmailMessage<br><br>email = EmailMessage()<br>email[&#39;from&#39;] = &#39;Archana Python Bot&#39;<br>email[&#39;to&#39;] = &#39;receiver@example.com&#39;<br>email[&#39;subject&#39;] = &#39;Automated Email from Python!&#39;<br><br>email.set_content(&#39;Hey there! This is an automated email sent using Python 🤖&#39;)<br><br>with smtplib.SMTP(host=&#39;smtp.gmail.com&#39;, port=587) as smtp:<br>   smtp.starttls()<br>   smtp.login(&#39;your_email@gmail.com&#39;, &#39;your_app_password&#39;)<br>   smtp.send_message(email)<br>print(&quot;Email sent successfully!&quot;)</pre><p><em>⚠️Note</em>: Use an <strong>App Password</strong> instead of your actual Gmail password for security.</p><h4>🌐3. Web Automation with Selenium</h4><p>Imagine you open a browser, search something, click a button and Python does it all for you!</p><p>This is possible with <strong>Selenium, </strong>a powerful automation library<strong>.</strong></p><p><em>Install it first:</em></p><pre>pip install selenium</pre><p>Example: Open Google and search something automatically👇</p><pre>from selenium import webdriver<br>from selenium.webdriver.common.keys import Keys<br><br>driver = webdriver.Chrome()<br>driver.get(&quot;https://www.google.com&quot;)<br><br>search = driver.find_element(&quot;name&quot;, &quot;q&quot;)<br>search.send_keys(&quot;Python Automation&quot;)<br>search.send_keys(Keys.RETURN)<br><br>print(&quot;Search completed!&quot;)</pre><p><em>✨You can extend this to automate logins, form-fills, and web scraping!</em></p><h4>⏱️4. Task Scheduling — Make Python Run on Its Own</h4><p>You can schedule tasks using the <strong>schedule</strong> library.</p><p>It lets you run Python functions automatically every few seconds, minutes, or hours.</p><pre>pip install schedule</pre><p>Examples: Send yourself a motivational message every morning💪</p><pre>import schedule<br>import time<br><br>def morning_greet():<br>  print(&quot;Good Morning, Archana! Let&#39;s make your today productive!&quot;)<br><br>schedule.every().day.at(&quot;07:00&quot;).do(morning_greet)<br><br>while True:<br>  schedule.run_pending()<br>  time.sleep(1)</pre><p><em>💡Combine this with email or notification automation for even more impact!</em></p><h4>💻Mini Project: Auto File Organizer📁</h4><p>Let’s build something practical, a <strong>folder auto-cleaner</strong>.</p><p>It runs every 10 minutes and organizes files based on type.</p><pre>import os, shutil, time<br><br>def organize_folder():<br>  path = &quot;C:/Users/Archana/Downloads&quot;<br>  for file in os.listdir(path):<br>    name, ext = os.path.splitext(file)<br>    ext = ext[1:] #remove dot<br><br>    if ext:<br>      folder = os.path.join(path, ext)<br>      if not os.path.exists(folder):<br>         os.amkedirs(folder)<br>      shutil.move(os.path.join(path, file), os.path.join(folder, file))<br><br>print(&quot;Folder organized successfully!&quot;)<br><br>while True:<br>  organize_folder()<br>  time.sleep(600) #every 10 minutes      </pre><p><strong><em>🎯Concepts Used:</em></strong></p><ul><li>File &amp; folder operations</li><li>Conditional checks</li><li>Time-based automation</li></ul><h4>🚀Why Learn Automation?</h4><p>Because automation = <strong>efficiency</strong> + <strong>freedom</strong>.🕊️</p><p>Once you master it, you can:</p><ul><li>Save hours of manual work</li><li>Improve productivity</li><li>Scale projects easily</li><li>Impress employers with practical automation scripts</li></ul><p>In short, it’s one of the most <em>powerful career skills</em> you can add as a Python developer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CZ2uQpAMk7A5SJCHW0SPXw.jpeg" /></figure><h4>🔮Coming Next (18/18)</h4><p><strong><em>🏁Final Project &amp; Next Steps — Become a Python Pro!</em></strong></p><p>We’ll bring together everything we’ve learned, APIs, OOPs, automation into a final mini project and discover where to go next in this Python journey.🚀</p><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b016793b1305" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/%EF%B8%8Fautomation-with-python-let-your-code-do-the-work-b016793b1305">⚙️Automation with Python — Let Your Code Do the Work!🤖</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working with APIs — Let You Code Talk to the World!]]></title>
            <link>https://python.plainenglish.io/working-with-apis-let-you-code-talk-to-the-world-ef8ca7b668a1?source=rss-a15d3174bfc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef8ca7b668a1</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <dc:creator><![CDATA[Archana R Mulge]]></dc:creator>
            <pubDate>Fri, 31 Oct 2025 07:11:35 GMT</pubDate>
            <atom:updated>2025-10-31T11:58:33.907Z</atom:updated>
            <content:encoded><![CDATA[<h3>🧠Working with APIs — Let You Code Talk to the World!🌎</h3><p><strong><em>Python Series (16/18)</em></strong></p><p>Welcome back, coder!👋</p><p>Till now, we’ve mastered Python’s inner world from variables and OOPs to modules and virtual environments.</p><p>Now, it’s time to <em>open the door</em> and let your code <strong>communicate with the real world.</strong>🌐</p><p>Yes, I’m talking about <strong>APIs</strong>, your bridge to infinite data and possibilities.</p><h4>🌎What Is an API?</h4><p>An <strong>API (Application Programming Interface)</strong> is like a <em>messenger</em> between your program and another system.</p><ul><li>You send a request — the API takes it to the server</li><li>The server processes it — the API brings back the response</li></ul><p>It’s like ordering pizza, you don’t go to the kitchen; you just tell the waiter what you want!</p><h4>⚙️The requests Library — Your Gateway to the Web</h4><p>The easiest way to work with APIs in Python is by using the <strong>requests</strong> library.</p><p>Install it (if you haven’t yet):</p><pre>pip install requests</pre><p>Now, let’s fetch something cool, say, a random joke! 😄</p><pre>import requests<br><br>url = &quot;https://official-joke-api.appspot.com/random_joke&quot;<br>response = requests.get(url)<br><br>print(response.status_code)<br>print(response.json())</pre><p><strong><em>Output:</em></strong></p><pre>{&#39;setup&#39;: &#39;Why do programmers prefer dark mode?&#39;, &#39;punchline&#39;: &#39;Because light attracts bugs!&#39;}</pre><h4>📦Understanding JSON — The Data Language of APIs</h4><p>Most APIs respond in JSON (JavaScript Object Notation), lightweight and human readable.</p><p>Let’s say we got this data:</p><pre>data = {<br>  &quot;name&quot;: &quot;Archana&quot;,<br>  &quot;city&quot;: &quot;Gulbarga&quot;,<br>  &quot;skills&quot;: [&quot;Python&quot;, &quot;AI&quot;, &quot;ML&quot;]<br>}</pre><p>We can convert between Python and JSON easily:</p><pre>import json<br><br>#Python -&gt; JSON<br>json_data = json.dumps(data)<br><br>#JSON -&gt; Python<br>python_data = json.loads(json_data)</pre><p><strong><em>✨Pro Tip:</em></strong></p><p><strong><em>requests.get(url).json() </em></strong>automatically converts JSON into a Python dictionary for you!</p><h4>🌤️Mini Project 1: Weather Fetch App☁️</h4><p>Lets make your first API-powered mini project, a Weather APP using OpenWeatherMap API.</p><p>🌐Get your free API key from: <a href="https://openweathermap.org/api">https://openweathermap.org/api</a></p><pre>import requests<br><br><br>API_KEY = &quot;your_api_key&quot;<br>city = input(&quot;Enter city name: &quot;)<br><br>url = f&quot;https://api/openweathermap.org/data/2.5/weather?q={city}&amp;appid={API_KEY}&amp;units=metric&quot;<br><br>response = requests.get(url)<br>data = response.json()<br><br>if response.status_code == 200:<br>  print(f&quot;Weather in {city}: {data[&#39;main&#39;][&#39;temp&#39;]} Degree Celsius&quot;)<br>  print(f&quot;Wind Speed: {data[&#39;wind&#39;][&#39;speed&#39;]} m/s&quot;)<br>  print(f&quot;Condition: {data[&#39;weather&#39;][0][&#39;description&#39;].title()}&quot;)<br>else:<br>  print(&quot;City not found. Please try again!&quot;)</pre><p><strong><em>✅Concepts Used:</em></strong></p><ul><li>User Input</li><li>String Formatting</li><li>API Integration</li><li>JSON Parsing</li></ul><h4>🗞️Mini Project 2: News Headlines Fetcher📰</h4><p>Want the latest headlines without opening a browser? Python can do that too!</p><pre>import requests<br><br>API_KEY = &quot;your_api_key&quot;<br>url = f&quot;https://newsapi.org/v2/top-headlines?country=in&amp;apiKey={API_KEY}&quot;<br><br>response = requests.get(url)<br>articles = response.json()[&quot;articles&quot;]<br><br>for i, article in enumerate(articles[:5], 1):<br>   print(f&quot;{i}. {article[&#39;title&#39;]}&quot;)</pre><p><strong><em>✅Concepts Used:</em></strong></p><ul><li>Pagination</li><li>Looping through JSON</li><li>Real-time data</li></ul><h4><strong>🚀Why APIs Matter</strong></h4><p>APIs are the <em>heartbeat</em> of modern applications.</p><p>They power everything from:</p><ul><li>AI chatbots (using Open AI or Gemini APIs)</li><li>Weather apps</li><li>Stock trackers</li><li>Automation dashboards</li></ul><p>When you master APIs, you’re not just coding, you’re <strong>connecting your ideas with the entire digital universe.🌌</strong></p><h4>💡Quick Challenge for You</h4><p>Build a “Crypto Price Tracker” using this free API:</p><p>👉 <a href="https://api.coindesk.com/vl/bpi/currentprice.json">https://api.coindesk.com/vl/bpi/currentprice.json</a></p><p>Display:</p><ul><li>Current Bitcoin price in USD</li><li>Last updated time</li><li>Trend (if price is rising or falling compared to previous value)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*_YUT19ongWL8Cw4Ke3uaAw.jpeg" /></figure><h4>🔮Coming Next (17/18)</h4><p><strong><em>⚙️Automation with Python — Let Your Code Do the Work!🤖</em></strong></p><p>We’ll learn how to make Python perform daily tasks automatically from sending emails to managing files and even opening browsers for us!</p><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef8ca7b668a1" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/working-with-apis-let-you-code-talk-to-the-world-ef8ca7b668a1">🧠Working with APIs — Let You Code Talk to the World!🌎</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Modules, Libraries & Virtual environments — Building Your Python Universe! ]]></title>
            <link>https://python.plainenglish.io/modules-libraries-virtual-environments-building-your-python-universe-98aef42e77ad?source=rss-a15d3174bfc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/98aef42e77ad</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[python-programming]]></category>
            <dc:creator><![CDATA[Archana R Mulge]]></dc:creator>
            <pubDate>Thu, 30 Oct 2025 04:16:14 GMT</pubDate>
            <atom:updated>2025-10-30T04:41:02.849Z</atom:updated>
            <content:encoded><![CDATA[<h3>🪄Modules, Libraries &amp; Virtual environments — Building Your Python Universe! 🌌</h3><p><strong><em>Python Series (15/18)</em></strong></p><p>Welcome back, code explorer!🚀</p><p>You’ve learned how to write clean, powerful Python code.</p><p>Now it’s time to learn how professionals <strong>organize, reuse, and scale</strong> that code using <strong>modules, libraries, and virtual environments</strong>.</p><p>Let’s unlock the secret to building your <em>Python ecosystem</em>! 🧠💫</p><h4>🧩What Are Modules?</h4><p>Think of a <strong>module</strong> as a toolbox, as single .py file containing functions, variables, or classes that you can reuse anywhere.</p><p><strong><em>Example:</em></strong></p><p>You made a file named greet.py:</p><pre>#greet.py<br>def say_hello(name):<br>  return f&quot;Hello, {name}!&quot;</pre><p>Now, in another files, you can reuse it:</p><pre>#main.py<br>import greet<br>print(greet.say_hello(&quot;Archana&quot;))</pre><p><strong><em>Output:</em></strong></p><p>Hello, Archana!</p><h4>🎯Why use modules?</h4><ul><li>Avoid repetition</li><li>Keep your code organized</li><li>Make debugging and teamwork easier</li></ul><h4>🧭Types of Imports</h4><p>Python gives you flexibility in how to bring your tools in:</p><pre>import math<br>print(math.sqrt(16)) #4.0<br><br>#Or just import what you need:<br>from math import sqrt<br>print(sqrt(16)) #4.0<br><br>#Or give it a nickname (alias):<br>import math as m<br>print(m.pi) #3.1415926535</pre><h4>💡Built-in Python Modules</h4><p>Python comes packed with ready-to-use modules, no installation required!</p><ol><li>math — Mathematical operations — math.sqrt(25)</li><li>random — Generate random numbers — random.randint(1, 10)</li><li>datetime — Work with dates &amp; times — datetime.datetime.now()</li><li>os — Interact with your system — os.getcwd()</li><li>sys — Access Python runtime info — sys.version</li></ol><p><strong><em>Example:</em></strong></p><pre>import datetime<br>print(&quot;Today is: &quot;, datetime.date.today())</pre><p><strong><em>Output:</em></strong></p><p>Today is: 2025–10–26</p><h4>🧰Creating Your Own Packages</h4><p>When your project grows, you’ll need <strong>packages</strong> — collections grouped together.</p><p><strong><em>Folder structure:</em></strong></p><p>myproject/</p><p>— math_tools/ __init__.py, add.py, subtract.py</p><p>— main.py</p><p>__init__.py tells Python: “Hey, this folder is a package!”</p><p>Now in main.py:</p><pre>from math_tools import add<br>print(add.add_numbers(10, 5))</pre><p><strong><em>Output:</em></strong></p><p>15</p><p>✅Packages make your project scalable and easy to maintain.</p><h4>🌍Exploring Python Libraries</h4><p>Libraries are <strong><em>collections of pre-built modules</em></strong> that save your time and effort.</p><p>You can install new ones from the Python Package Index (PyPI) using <strong><em>pip</em></strong>.</p><pre>pip install requests</pre><p>Then use it like this:</p><pre>import requests<br>response = requests.get(&quot;https://api.github.com&quot;)<br>print(response.status_code)</pre><p><strong><em>Output:</em></strong></p><p>200</p><h4><strong>🎯Some Popular Python Libraries:</strong></h4><ul><li>NumPy — For math &amp; scientific computing</li><li>Pandas — For data analysis</li><li>Matplotlib — For data visualization</li><li>Flask / Django — For web development</li><li>OpenAI / Transformers — For AI &amp; NLP models</li></ul><h4>🧪Virtual Environments — Your Code’s Personal Bubble🫧</h4><p>Imagine you’re working on two projects:</p><ul><li>One needs Django 4.0</li><li>Another needs Django 3.2</li></ul><p>How do you keep them from clashing?</p><p>That’s where <strong>virtual environments</strong> come in!</p><p>They isolate dependencies, like personal sandboxes for each project.</p><h4>🧱Create a Virtual Environment</h4><p>In your project folder, run:</p><pre>python -m venv myenv</pre><p>Then activate it:</p><ul><li><strong>Windows</strong>: myenv\Scripts\activate</li><li><strong>Mac/Linux</strong>: source myenv/bin/activate</li></ul><p>You’ll see (myenv) appear in your terminal, you’re inside your isolated space now!</p><p>Install packages safely:</p><pre>pip install numpy</pre><p>Deactivate when done:</p><pre>deactivate</pre><p>✅No more “package version chaos” — every project stays clean and independent!</p><h4>🧩Real-World Example — Mini Weather App🌦️</h4><p>Let’s build a small app that uses a third-party library inside a virtual environment.</p><pre>import requests<br><br>city = &quot;Bangalore&quot;<br>api_key = &quot;your_api_key_here&quot;<br>url = f&quot;https://api.openweathermap.org/data/2.5/weather?q={city}&amp;appid={api_key}&amp;units=metric&quot;<br><br>response = requests.get(url)<br>data = response.json()<br><br>print(f&quot;City: {data[&#39;name&#39;]}&quot;)<br>print(f&quot;Temperature: {data[&#39;main&#39;][&#39;temp&#39;]} Degree C&quot;)<br>print(f&quot;Weather: {data[&#39;weather&#39;][0][&#39;description&#39;]}&quot;)</pre><p>💡This simple script demonstrates <strong>modules, libraries, </strong>and<strong> API usage</strong>, exactly how developers build real-world applications.</p><h4>🚀Why This Matters</h4><p>✅You learn to <strong>organize projects</strong> like professionals</p><p>✅You master <strong>imports, packages, </strong>and<strong> environments</strong></p><p>✅You’re ready to <strong>collaborate</strong> and deploy real-world Python applications</p><p>This is where your skills shift from <em>coding</em> to <em>engineering</em>.🧠⚙️</p><h4>✨Final Thoughts</h4><p>Modules, libraries, and environments are your <strong>Python universe’s pillars</strong>.</p><p>Once you master these, you can master these, you can explore infinite worlds — data, AI, web, automation, and more!🌌</p><p>“Good code is not just about logic; it’s about structure and scalability.”</p><p>You’re officially building like a <strong>Python architect</strong> now. 🏗️🐍</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p6qgRmtoOLUWx0JtZzwqRg.jpeg" /></figure><h4>✨Next Up:</h4><p><strong><em>Python Series (16/18): Working with APIs — Let Your Code Talk to the World!🌎</em></strong></p><p>We’ll learn how Python connects with external data sources using APIs like request, REST APIs, JSON handling. This will prepare us for AI, web, data projects where integration is key.</p><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98aef42e77ad" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/modules-libraries-virtual-environments-building-your-python-universe-98aef42e77ad">🪄Modules, Libraries &amp; Virtual environments — Building Your Python Universe! 🌌</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[✨Advanced Concepts — Lambda, Map, Filter & List Comprehension Magic!⚡]]></title>
            <link>https://python.plainenglish.io/advanced-concepts-lambda-map-filter-list-comprehension-magic-d2fb888451af?source=rss-a15d3174bfc4------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2fb888451af</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Archana R Mulge]]></dc:creator>
            <pubDate>Wed, 29 Oct 2025 14:38:29 GMT</pubDate>
            <atom:updated>2025-10-30T18:59:16.371Z</atom:updated>
            <content:encoded><![CDATA[<h3>✨Advanced Concepts — Lambda, Map, Filter &amp; List Comprehension Magic!⚡</h3><p><strong><em>Python Series (14/18)</em></strong></p><p>Welcome back, code magician!🧙</p><p>You’ve already mastered how to enhance functions with <strong>decorators</strong>, now it’s time to learn how to <strong>transform data elegantly</strong> with just a few lines of Python!</p><p>This lesson is all about <em>Pythonic beauty</em>, writing <strong>clean, concise, and powerful </strong>code using built-in functional tools:</p><p>👉lambda, map(), filter(), and list comprehensions.</p><p>Let’s unlock the magic behind them!🌈</p><h4>🧠1. Lambda Functions — Anonymous Powerhouses💥</h4><p>Imagine you need a small helper function something quick, lightweight, and used only once.</p><p>Instead of writing a whole def function, you can create a <strong>lambda function</strong>, a <em>nameless function</em> that exists on the fly! ⚡</p><p><strong><em>🪄Syntax:</em></strong></p><p><strong>lambda arguments: expression</strong></p><p>✅Use it when:</p><ul><li>You need small, temporary functions</li><li>You’re using functions like map(), filter(), or sorted()</li></ul><pre>#Normal function<br>def square(x):<br>  return x * x<br><br>#Lambda version<br>square = lambda x:x * x<br>print(square(5))</pre><p><strong><em>Output:</em></strong></p><p>25</p><p>It’s short, expressive, and perfect for one-line transformations.</p><h4>⚙️2. Map() — Transform Everything in One Go! 🚀</h4><p>map() lets you apply a function to <strong>every item </strong>in an iterable (like a list or tuple), no loops needed!</p><pre>numbers = [1, 2, 3, 4, 5]<br>squares = list(map(lambda x: x ** 2, numbers))<br>print(squares)</pre><p><strong><em>Output:</em></strong></p><p>[1, 4, 9, 16, 25]</p><p><em>💡Think of map() as: “Do this operation to </em><strong><em>each</em></strong><em> element”.</em></p><p>You can even combine multiple iterables:</p><pre>a = [1, 2, 3]<br>b = [4, 5, 6]<br>sum_list = list(map(lambda x, y: x+y, a, b))<br>print(sum_list)</pre><p><strong><em>Output:</em></strong></p><p>[5, 7, 9]</p><h4>🌿3. Filter() — Keep Only What You Need 🌱</h4><p>filter() helps you <em>select items</em> from a list that meet certain conditions.</p><p>It filters data simple, clean, and beautiful.</p><pre>numbers = [10, 15, 20, 25, 30]<br>even_numbers = list(filter(lambda x: x % 2 == 0, numbers))<br>print(even_numbers)</pre><p><strong><em>Output:</em></strong></p><p>[10, 20, 30]</p><p><em>💡Think of filter() as: “Keep only the ones that pass my test!”</em></p><h4>🎯4. List Comprehension — One Line to Rule Them All👑</h4><p>List comprehension is Python’s <em>signature move</em>.</p><p>It replaces multiple lines of looping logic with a single expressive statement.</p><pre>numbers = [1, 2, 3, 4, 5]<br>squares = [x ** 2 for x in numbers]<br>print(squares)</pre><p><strong><em>Output:</em></strong></p><p>[1, 4, 9, 16, 25]</p><p>It’s super-readable, fast, and elegant.</p><h4>🔍Filtering with Conditions</h4><pre>numbers = [10, 15, 20, 25, 30]<br>even_squares = [x ** 2 for x in numbers if x % 2 == 0]<br>print(even_squares)</pre><p><strong><em>Output:</em></strong></p><p>[100, 400, 900]</p><p>You can also use <strong>nested loops</strong>:</p><pre>pairs = [(x, y) for x in [1, 2, 3] for y in [&#39;a&#39;, &#39;b&#39;]]<br>print(pairs)</pre><p><strong><em>Output:</em></strong></p><p>[(1, ‘a’), (1, ‘b’), (2, ‘a’), (2, ‘b’), (3, ‘a’), (3, ‘b’)]</p><h4>🪄Bonus: Dictionary &amp; Set Comprehensions</h4><p>Python didn’t stop at lists, you can use the same magic for <strong>dicts</strong> and <strong>sets</strong>!</p><p><strong><em>Dictionary Comprehension</em></strong></p><pre>squares = {x: x**2 for x in range(5)}<br>print(squares)</pre><p><strong><em>Output:</em></strong></p><p>{0: 0, 1: 1, 2: 4, 3: 9, 4: 16}</p><p><strong><em>Set Comprehension</em></strong></p><pre>unique_squares = {x ** 2 for x in [1, 2, 2, 3]}<br>print(unique_squares)</pre><p><strong><em>Output:</em></strong></p><p>{1, 4, 9}</p><h4><strong>🧩Mini Project: Student Score Filter 🧮</strong></h4><p>Let’s combine everything you’ve learned — lambda, map, filter, and list comprehension!</p><pre>students = [<br>  {&quot;name&quot;: &quot;Archana&quot;, &quot;score&quot;: 85},<br>  {&quot;name&quot;: &quot;Ravi&quot;, &quot;score&quot;: 62},<br>  {&quot;name&quot;: &quot;Meera&quot;, &quot;score&quot;: 91},<br>  {&quot;name&quot;: &quot;Karna&quot;, &quot;score&quot;: 45}<br>]<br><br>#Step 1: Filter only passing students<br>passed_students = list(filter(lambda s: s[&quot;score&quot;] &gt;= 60, students))<br><br>#Step 2: Extract their names using map<br>names = list(map(lambda s: s[&quot;name&quot;], passed_students))<br><br>#Step 3: Create formatted results with list comprehension<br>results = [f&quot;{name} passed&quot; for name in names]<br><br>print(results)</pre><p><strong><em>Output:</em></strong></p><p>[‘Archana passed’, ‘Ravi passed’, ‘Meera passed’]</p><p>💥Boom! You just processed data like a pro —<strong> short, elegant, </strong>and<strong> powerful</strong>!</p><h4>🌨️Final Thoughts</h4><p>With lambda, map(), filter(), and comprehensions, you’ve entered the world of <em>Pythonic thinking</em>.</p><p>You no longer just write loops, you <em>express</em> intent.</p><p>✅<strong>Lambda</strong> — creates mini functions in one line.</p><p>✅<strong>Map</strong> — transforms data.</p><p>✅<strong>Filter</strong> — extracts what matters.</p><p>✅<strong>Comprehensions</strong> — combine all the above, beautifully.</p><p>They’re the secret behind most real-world Python projects from data pipelines to AI model preprocessing.🧠💻</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*op6EtA_G0a9c-PIanV4Fag.jpeg" /></figure><h4>🪄Next Up:</h4><p><strong><em>Python Series (15/18): Modules, Libraries &amp; Virtual Environments — Building Your Python Universe!🌌</em></strong></p><p>We’ll learn how to organize our growing codebase, import libraries like a pro, and create our very own isolated Python worlds!🌍✨</p><h3>A message from our Founder</h3><p><strong>Hey, </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>Sunil</strong></a><strong> here.</strong> I wanted to take a moment to thank you for reading until the end and for being a part of this community.</p><p>Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? <strong>We don’t receive any funding, we do this to support the community. ❤️</strong></p><p>If you want to show some love, please take a moment to <strong>follow me on </strong><a href="https://linkedin.com/in/sunilsandhu"><strong>LinkedIn</strong></a><strong>, </strong><a href="https://tiktok.com/@messyfounder"><strong>TikTok</strong></a>, <a href="https://instagram.com/sunilsandhu"><strong>Instagram</strong></a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/"><strong>weekly newsletter</strong></a>.</p><p>And before you go, don’t forget to <strong>clap</strong> and <strong>follow</strong> the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2fb888451af" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/advanced-concepts-lambda-map-filter-list-comprehension-magic-d2fb888451af">✨Advanced Concepts — Lambda, Map, Filter &amp; List Comprehension Magic!⚡</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>