<?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 Codingmadeeasy on Medium]]></title>
        <description><![CDATA[Stories by Codingmadeeasy on Medium]]></description>
        <link>https://medium.com/@codingmadeeasy92?source=rss-250b4c3cbc0a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*6YW40FrxC4GgOHah</url>
            <title>Stories by Codingmadeeasy on Medium</title>
            <link>https://medium.com/@codingmadeeasy92?source=rss-250b4c3cbc0a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 01:21:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@codingmadeeasy92/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[C Programming for Beginners: Free Step-by-Step Course]]></title>
            <link>https://medium.com/@codingmadeeasy92/c-programming-for-beginners-free-step-by-step-course-51f8004fe755?source=rss-250b4c3cbc0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/51f8004fe755</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Codingmadeeasy]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 04:03:54 GMT</pubDate>
            <atom:updated>2026-11-25T04:03:54.678Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mdznNM1j8LNqjtK8uEhkVQ.png" /></figure><p><strong>C </strong><a href="https://codemagnet.in/"><strong>programming </strong></a><strong>for beginners</strong> starts with one simple idea: you write instructions, and the computer follows them exactly. C is one of the oldest and most trusted languages in the world. It runs operating systems, games and even the tiny chip inside your washing machine.</p><p>Learn C first and every other language, such as Python, Java or C++, becomes easier. You will understand what the computer really does behind the scenes.</p><p>This free course uses plain words and short examples. Every code block can be copied and run. By the end you will know variables, input and output, decisions, loops, <strong>arrays</strong> and functions. No experience is needed, just a computer and curiosity.</p><p><strong>Estimated reading time:</strong> 8 minutes. <strong>Practice time:</strong> 2 hours. C programming for beginners</p><h3>Lesson 1: Set Up and Write Your First C Program</h3><p>Computers do not understand C directly. A <strong>compiler</strong> is a translator that turns your C text into machine code. Install a free one called GCC (Windows: MinGW or Code::Blocks, Mac: Xcode command line tools, Linux: sudo apt install gcc). You can also use any free online C compiler.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bZeOIhKNcHYF7vqI.png" /></figure><p>Start with the classic first program. It prints a message on the screen.</p><pre>#include &lt;stdio.h&gt;</pre><pre>int main() {<br>    printf(&quot;Hello, World!\n&quot;);<br>    return 0;<br>}</pre><p>Here is what each line does:</p><ul><li>#include &lt;stdio.h&gt; brings in tools for printing and reading.</li><li>int main() is where every <a href="https://codemagnet.in/2026/11/25/c-programming-for-beginners/">C </a>program starts.</li><li>printf prints text on the screen. \n means &quot;go to a new line&quot;.</li><li>return 0; tells the computer everything went fine.</li><li>Every instruction ends with a semicolon ;.</li></ul><p>Save the file as hello.c, then compile and run it:</p><pre>gcc hello.c -o hello<br>./hello</pre><p>On Windows, run hello.exe instead of ./hello. You will see: <strong>Hello, World!</strong></p><h3>Lesson 2: Variables and Data Types</h3><p>A <strong>variable</strong> is a labelled box that stores a value. You must tell C what kind of value the box will hold. That kind is called the <strong>data type</strong>.</p><pre>#include &lt;stdio.h&gt;</pre><pre>int main() {<br>    int age = 18;<br>    float price = 99.5;<br>    char grade = &#39;A&#39;;</pre><pre>    printf(&quot;Age: %d, Price: %.1f, Grade: %c\n&quot;, age, price, grade);<br>    return 0;<br>}</pre><p>TypeStoresExamplePrint withintWhole numbers25%dfloatDecimal numbers3.14%fdoubleBigger decimals3.14159265%lfcharOne character’A’%c</p><p>Naming rules: a name cannot start with a number, cannot have spaces, and capital letters matter (Age and age are different).</p><p>Read More Below</p><p><a href="https://codemagnet.in/2026/11/25/c-programming-for-beginners/">https://codemagnet.in/2026/11/25/c-programming-for-beginners/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51f8004fe755" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 Python Tricks That Make Complex Code Simple With Examples]]></title>
            <link>https://medium.com/@codingmadeeasy92/7-python-tricks-that-make-complex-code-simple-with-examples-2bf58649fbe3?source=rss-250b4c3cbc0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bf58649fbe3</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[coding-interviews]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[python-libraries]]></category>
            <dc:creator><![CDATA[Codingmadeeasy]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 02:56:00 GMT</pubDate>
            <atom:updated>2026-11-24T02:56:00.869Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M9JJTIhctSCJe-cqcFnKiQ.png" /></figure><p>When I first started learning Python, I thought good programmers wrote long, clever code full of difficult words. The truth turned out to be the opposite. The best Python code often reads almost like a sentence in English, and a small group of built-in tools does most of the heavy lifting.</p><p>In this guide you will learn seven Python tricks that replace messy, repeated code with something short and clear. Every example is tiny, tested, and ready to copy. You do not need to install anything. If you can write a simple for loop, you can use every trick below today.</p><h3>1. Use enumerate() instead of a counter variable</h3><p>Picture a cafe menu where every dish needs a number beside it. Many beginners create a variable called count, set it to zero, and add one inside the loop. That works, but it is one more thing to remember and one more place for a bug to hide.</p><p>enumerate() does the counting for you. On every turn of the loop it hands you two things: the position and the item. Think of the token machine at a bank, which gives each person a number as they walk in. The start=1 part simply tells it to begin from 1 instead of 0, which feels more natural when people will read the numbers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/0*LzJJEnN9E3Ot4D7N" /></figure><p>Copy code</p><pre>menu = [&quot;Tea&quot;, &quot;Samosa&quot;, &quot;Sandwich&quot;]</pre><pre>for number, item in enumerate(menu, start=1):</pre><pre>print(f&quot;{number}. {item}&quot;)</pre><h3>2. Use zip() to read two lists side by side</h3><p>Imagine you keep student names in one list and their marks in another. Looping with index numbers to match them is clumsy. zip() works like the zipper on a jacket: it joins the first item of each list, then the second, then the third.</p><p>One thing to remember: zip() stops when the shorter list ends, so extra items on the longer list are quietly ignored. Check that both lists have the same length if every item matters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/0*aTpzFUivAQQZdfP4" /></figure><p>Copy code</p><pre>students = [&quot;Asha&quot;, &quot;Ravi&quot;, &quot;Meena&quot;]</pre><pre>marks = [82, 67, 91]</pre><pre>for student, mark in zip(students, marks):</pre><pre>print(student, &quot;scored&quot;, mark)</pre><h3>3. Build a dictionary in one line with a comprehension</h3><p>Suppose a shop keeps prices in a dictionary and you need to add 18% GST to every price. The long way is to create an empty dictionary, loop through the old one, and fill the new one step by step.</p><p>A dictionary comprehension says the same thing in a single line. Read it out loud: for every item and cost in prices, make a new pair of item and cost times 1.18. The original dictionary stays untouched, which is a safe habit when you are experimenting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/0*BJ-0UvKzkhg1x4lv" /></figure><p>Copy code</p><pre>prices = {&quot;pen&quot;: 10, &quot;book&quot;: 120, &quot;bag&quot;: 450}</pre><pre>with_gst = {item: round(cost * 1.18, 2) for item, cost in prices.items()}</pre><pre>print(with_gst)</pre><h3>4. Ask simple questions with any() and all()</h3><p>Most people write a loop with a flag variable to answer questions like these. Python already has the answers built in. any() asks whether at least one thing is true. all() asks whether every single thing is true.</p><p>In the example, the first line asks if anyone scored 90 or above. The second asks if everybody passed with 40 or more. Both give a plain True or False, and you can read them almost like English.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bf58649fbe3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learn Python the Right Way: Avoid the Syntax-First Trap]]></title>
            <link>https://medium.com/@codingmadeeasy92/learn-python-the-right-way-avoid-the-syntax-first-trap-fe6e8abaab5f?source=rss-250b4c3cbc0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe6e8abaab5f</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[python-programming]]></category>
            <dc:creator><![CDATA[Codingmadeeasy]]></dc:creator>
            <pubDate>Fri, 20 Nov 2026 03:29:29 GMT</pubDate>
            <atom:updated>2026-11-20T03:29:29.163Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KZs487XuED7lLCN6xlWJLQ.png" /></figure><p>Most beginners quit <a href="https://codemagnet.in/">Python </a>for one reason: they start with the rulebook instead of the game. They open a tutorial, copy out for loops, if statements and function definitions for weeks, and then freeze the moment they face a blank screen. If that sounds like you, nothing is wrong with your brain. You have fallen into the syntax-first trap, and the way out is simpler than you think.</p><p>In this guide you will see what the trap is, why it keeps so many learners stuck, and a four-step method that gets you writing real programs in your first week.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hk3NQhX-DmYOGc_x.png" /></figure><h3>What is the syntax-first trap?</h3><p><strong>Syntax</strong> is just the spelling and grammar of a programming language: where the colons go, how indentation works, what a loop looks like. The trap is believing you must master all of it before you build anything.</p><p>Think about learning to cook. You could memorise the names of fifty knives, forty spices and every cooking verb in a dictionary. But you would still not know how to make dinner. Real cooks learn by making a simple dish, burning it once, and trying again. Programming works the same way.</p><p>Here is why the syntax-first route fails:</p><ul><li><strong>Recognising is not the same as producing.</strong> Reading print(&quot;Hi&quot;) in a lesson feels easy. Typing it from a blank screen is a different skill, like understanding a French sentence versus speaking one.</li><li><strong>Forgotten fast.</strong> Facts with no purpose attached fade within days. A loop you used to fix a real problem sticks for years.</li><li><strong>No payoff.</strong> Weeks pass with nothing to show, so motivation drains and you blame yourself.</li></ul><p>Projects keep you moving; memorising alone ends at a blank screen</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/0*s61n9QvD4X4UczG7.png" /></figure><p>The top path piles up rules with nothing to apply them to. The bottom path ties every rule to a goal, so it ends in something that runs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YIJ5bBwK49V8G8Ii.png" /></figure><h3>The project-first method in four steps</h3><ol><li><strong>Pick a tiny goal you care about.</strong> Splitting a restaurant bill, renaming a folder of photos, or tracking your monthly spending are all good. If the result is useful to you, you will keep going.</li><li><strong>Learn only the pieces that goal needs.</strong> For a bill splitter you need variables, numbers and print. Nothing else. Skip classes and decorators for now.</li><li><strong>Write ugly code that works.</strong> Run it, watch it break, read the error message. Errors are not failures; they are Python telling you exactly where to look.</li><li><strong>Improve it one small step at a time.</strong> Add tip support, round the result, let the user type values. Each upgrade teaches one new idea in context.</li></ol><p>Read More Below<br><a href="https://codemagnet.in/2026/11/20/learn-python-without-syntax-first-trap/">https://codemagnet.in/2026/11/20/learn-python-without-syntax-first-trap/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe6e8abaab5f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automate Any Excel Report with Only 5 Lines of Python (Beginner Friendly)]]></title>
            <link>https://medium.com/@codingmadeeasy92/automate-any-excel-report-with-only-5-lines-of-python-beginner-friendly-248104ee2e25?source=rss-250b4c3cbc0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/248104ee2e25</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[excel]]></category>
            <dc:creator><![CDATA[Codingmadeeasy]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 04:05:24 GMT</pubDate>
            <atom:updated>2026-11-18T04:05:24.985Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5zMlbTYGbcmlora2kFZyZg.jpeg" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FciqM9JquUzc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DciqM9JquUzc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FciqM9JquUzc%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6d332a4f2c0f1b1c6015acbccd467b5d/href">https://medium.com/media/6d332a4f2c0f1b1c6015acbccd467b5d/href</a></iframe><p><em>Stop spending hours creating the same Excel reports every week. In this tutorial, you’ll learn how to automate repetitive Excel reporting using just five lines of Python code.</em></p><p>Watch the Whole video live above</p><h3>The Problem With Manual Excel Reporting</h3><p>If you’ve ever worked in Sales, Finance, HR, Operations, or Marketing, you’ve probably done something like this:</p><ul><li>Open a large Excel file</li><li>Filter rows</li><li>Copy and paste data</li><li>Create summary tables</li><li>Calculate totals</li><li>Export a new report</li><li>Repeat every week</li></ul><p>What takes 30 minutes to 2 hours manually can often be automated in seconds with Python.</p><p>The best part?</p><p>You don’t need to become a software engineer to do it.</p><p>In fact, the solution we’ll build today uses only <strong>5 lines of code</strong>.</p><h3>What We’re Building</h3><p>Imagine receiving a report like this every week:</p><p>DateCategoryRevenue2026–01–01Sales12502026–01–02Marketing9802026–01–03Finance21002026–01–04Sales1850</p><p>Instead of manually creating summaries, Python will automatically generate:</p><p>CategoryRevenueFinance2100Marketing980Sales3100</p><p>And it works for hundreds, thousands, or even millions of rows.</p><h3>Step 1: Install Required Libraries</h3><p>Open your terminal and run:</p><p>Shell</p><p>pip install pandas openpyxl</p><h3>What do these libraries do?</h3><p><strong>pandas</strong></p><ul><li>Reads Excel files</li><li>Analyzes data</li><li>Performs calculations</li></ul><p><strong>openpyxl</strong></p><ul><li>Writes Excel files</li><li>Creates output reports</li></ul><h3>Step 2: Create a Sample Excel File</h3><p>Let’s assume we have a file named:</p><p>Plain Text</p><p>report.xlsx</p><p>With the following columns:</p><p>Plain Text</p><p>Date</p><p>Category</p><p>Revenue</p><p>Example:</p><p>Plain Text</p><p>2026–01–01 | Sales | 1250</p><p>2026–01–02 | Marketing | 980</p><p>2026–01–03 | Finance | 2100</p><h3>Step 3: The 5-Line Python Script</h3><p>Here’s the complete automation script:</p><p>Python</p><p>import pandas as pd</p><p>df = pd.read_excel(“report.xlsx”)</p><p>summary = df.groupby(“Category”)[“Revenue”].sum()</p><p>summary.to_excel(“summary.xlsx”)</p><p>print(“Done!”)</p><p>That’s it.</p><p>Seriously.</p><p>Only 5 lines.</p><h3>Understanding Each Line</h3><h3>Line 1</h3><p>Python</p><p>import pandas as pd</p><p>This imports the Pandas library and gives it the short name pd.</p><h3>Line 2</h3><p>Python</p><p>df = pd.read_excel(“report.xlsx”)</p><p>This reads the Excel file and loads all the data into memory.</p><p>Think of it as turning Excel data into a Python object that can be analyzed.</p><h3>Line 3</h3><p>Python</p><p>summary = df.groupby(“Category”)[“Revenue”].sum()</p><p>This is where the magic happens.</p><p>Python:</p><ol><li>Groups records by Category</li><li>Calculates total Revenue</li><li>Stores the results</li></ol><p>Equivalent Excel work:</p><ul><li>Create Pivot Table</li><li>Drag fields</li><li>Configure calculations</li></ul><p>Python does it instantly.</p><h3>Line 4</h3><p>Python</p><p>summary.to_excel(“summary.xlsx”)</p><p>Exports the summarized data into a new Excel file.</p><p>Output:</p><p>Plain Text</p><p>summary.xlsx</p><p>Ready to share with managers or stakeholders.</p><h3>Line 5</h3><p>Python</p><p>print(“Done!”)</p><p>Simple confirmation that everything completed successfully.</p><p>Output:</p><p>Plain Text</p><p>Done!</p><h3>Running the Script</h3><p>Save your code as:</p><p>Plain Text</p><p>report.py</p><p>Run:</p><p>Shell</p><p>python report.py</p><p>Output:</p><p>Plain Text</p><p>Done!</p><p>You will now see:</p><p>Plain Text</p><p>report.xlsx</p><p>summary.xlsx</p><p>report.py</p><p>Inside your folder.</p><h3>Real-World Business Use Cases</h3><p>This simple automation can save hours every month.</p><h3>Sales Teams</h3><p>Automatically summarize:</p><ul><li>Revenue by product</li><li>Revenue by region</li><li>Revenue by salesperson</li></ul><h3>HR Teams</h3><p>Generate reports for:</p><ul><li>Employee count</li><li>Attendance</li><li>Training records</li></ul><h3>Finance Teams</h3><p>Create summaries for:</p><ul><li>Expenses</li><li>Budget reports</li><li>Monthly revenue</li></ul><h3>Marketing Teams</h3><p>Analyze:</p><ul><li>Campaign performance</li><li>Lead sources</li><li>Advertising spend</li></ul><h3>Make It Even Better</h3><p>Here’s an upgraded version:</p><p>Python</p><p>import pandas as pd</p><p>df = pd.read_excel(“report.xlsx”)</p><p>summary = (</p><p>df.groupby(“Category”)</p><p>.agg({“Revenue”: “sum”})</p><p>.sort_values(“Revenue”, ascending=False)</p><p>)</p><p>summary.to_excel(“summary.xlsx”)</p><p>print(“Automation Complete!”)</p><p>This version:</p><p>✅ Summarizes data</p><p>✅ Sorts categories</p><p>✅ Produces management-ready reports</p><h3>How Much Time Can You Save?</h3><p>Let’s do the math.</p><p>Manual reporting:</p><p>Plain Text</p><p>1 hour per week</p><p>Per year:</p><p>Plain Text</p><p>52 hours</p><p>One simple Python script:</p><p>Plain Text</p><p>5 seconds</p><p>That means you can reclaim an entire workweek every year by automating a single repetitive task.</p><h3>Final Thoughts</h3><p>Excel is an amazing tool, but repetitive reporting shouldn’t consume your day.</p><p>Python and Pandas allow you to transform tedious manual tasks into automated workflows with very little code.</p><p>If you’re new to automation, this is one of the best beginner projects you can build.</p><p>Start with five lines.</p><p>Then automate everything.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=248104ee2e25" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build your first Python GUI app in 17 seconds!]]></title>
            <link>https://medium.com/@codingmadeeasy92/build-your-first-python-gui-app-in-17-seconds-fc21c4e715fc?source=rss-250b4c3cbc0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc21c4e715fc</guid>
            <dc:creator><![CDATA[Codingmadeeasy]]></dc:creator>
            <pubDate>Fri, 13 Nov 2026 07:38:44 GMT</pubDate>
            <atom:updated>2026-11-13T07:38:44.951Z</atom:updated>
            <content:encoded><![CDATA[<h3>Build your first Python GUI app in 17 seconds! 🧮🐍<br>1️⃣ tk.Tk() makes the window<br>2️⃣ Entry is the screen<br>3️⃣ A loop builds all 16 buttons<br>4️⃣ eval() does the math<br>5️⃣ mainloop() brings it to life<br>💾 Save this for your next project<br>👉 Follow for Part 2 (Clear button!)<br>#python #pythonforbeginners #tkinter #pythonprojects #learnpython #coding #minipython #codingforbeginners #reels</h3><p>https://www.instagram.com/reel/DfrGxHxNXgG/?mdxt=MWFqeXN6YXpieXA0eA==</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc21c4e715fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python for Beginners: A Complete Comprehensive Course]]></title>
            <link>https://medium.com/@codingmadeeasy92/python-for-beginners-a-complete-comprehensive-course-ff4c4768ba85?source=rss-250b4c3cbc0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff4c4768ba85</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Codingmadeeasy]]></dc:creator>
            <pubDate>Thu, 29 Oct 2026 11:21:56 GMT</pubDate>
            <atom:updated>2026-10-29T11:21:56.368Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JVJlaIkKf0gPo9P3vfhBhw.png" /></figure><p>A hands-on, 10-module course that takes you from zero to building real <a href="https://codemagnet.in/2026/10/29/python-for-beginners-a-complete-course/">Python </a>programs. Each module has short lessons, code to try, exercises, and a mini project. Plan on 30 to 60 minutes per module.</p><h3>How to Use This Course</h3><ul><li>Type every example yourself. Don’t copy and paste.</li><li>Do the exercises before looking at hints.</li><li>Errors are normal. Read the message, it usually tells you what’s wrong.</li><li>Build the mini project at the end of each module.</li></ul><p><strong>Setup:</strong> Install Python from python.org (version 3.12 or newer). Use VS Code, or try code online at replit.com or python.org/shell. Check it works by running python --version in a terminal.</p><h3>Module 1: Your First Program</h3><p><strong>Goal:</strong> Run code and print output.</p><p>Copy code</p><pre>print(&quot;Hello, world!&quot;)</pre><pre>print(&quot;I am learning Python&quot;)</pre><p><strong>Key ideas</strong></p><ul><li>print() shows text on screen.</li><li>Text goes inside quotes (a <em>string</em>).</li><li>Lines starting with # are comments. Python ignores them.</li><li>Python runs code top to bottom, one line at a time.</li></ul><p>Copy code</p><pre># This is a comment</pre><pre>print(&quot;Python is fun&quot;)  # comment after code</pre><p><strong>Exercises</strong></p><ol><li>Print your name.</li><li>Print three lines about your favorite hobby.</li><li>Add a comment above each line.</li></ol><p><strong>Mini project:</strong> Print a small “business card” with your name, city and favorite food.</p><h3>Module 2: Variables and Data Types</h3><p><strong>Goal:</strong> Store and use information.</p><p>A <em>variable</em> is a labeled box that holds a value.</p><p>Copy code</p><pre>name = &quot;Sam&quot;<br>age = 25<br>height = 1.75<br>is_student = Trueprint(name, age, height, is_student)</pre><p><strong>The four basic types</strong></p><p>TypeNameExamplestrtext&quot;hello&quot;intwhole number42floatdecimal3.14boolTrue or FalseTrue</p><p>Check a type with type(x):</p><p>Copy code</p><pre>print(type(42))      # &lt;class &#39;int&#39;&gt;</pre><pre>print(type(&quot;hi&quot;))    # &lt;class &#39;str&#39;&gt;</pre><p><strong>Naming rules</strong></p><ul><li>Use letters, numbers and underscores. Can’t start with a number.</li><li>Use snake_case: first_name, not FirstName.</li><li>Names are case sensitive: age and Age are different.</li></ul><p><strong>f-strings</strong> put variables inside text:</p><p>Copy code</p><pre>name = &quot;Sam&quot;</pre><pre>age = 25</pre><pre>print(f&quot;{name} is {age} years old&quot;)</pre><p><strong>Getting input</strong></p><p>Copy code</p><pre>name = input(&quot;What is your name? &quot;)</pre><pre>print(f&quot;Nice to meet you, {name}!&quot;)</pre><p>input() always returns a string. Convert it when you need a number:</p><p>Copy code</p><pre>age = int(input(&quot;Age? &quot;))</pre><pre>print(f&quot;Next year you will be {age + 1}&quot;)</pre><p><strong>Exercises</strong></p><ol><li>Store your favorite number in a variable and print it.</li><li>Ask for a name and greet the person.</li><li>Ask for two numbers and print their sum.</li></ol><p><strong>Mini project:</strong> A “Mad Libs” game. Ask for a noun, a verb and an adjective, then print a silly sentence using them.</p><h3>Module 3: Operators and Strings</h3><p><strong>Goal:</strong> Do math and work with text.</p><p><strong>Math operators</strong></p><p>Copy code</p><pre>print(7 + 3)    # 10  addition</pre><pre>print(7 - 3)    # 4   subtraction</pre><pre>print(7 * 3)    # 21  multiplication</pre><pre>print(7 / 2)    # 3.5 division (always a float)</pre><pre>print(7 // 2)   # 3   floor division</pre><pre>print(7 % 2)    # 1   remainder</pre><pre>print(2 ** 3)   # 8   power</pre><p>Python follows normal math order. Use parentheses to be clear: (2 + 3) * 4.</p><p><strong>Shortcuts</strong></p><p>Copy code</p><pre>score = 10</pre><pre>score += 5   # same as score = score + 5</pre><pre>score -= 2</pre><pre>score *= 2</pre><p><strong>Comparison operators</strong> give True or False:</p><p>Read More Below</p><p><a href="https://codemagnet.in/2026/10/29/python-for-beginners-a-complete-course/">Python for Beginners — A Complete Comprehensive Course</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff4c4768ba85" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python print vs return, shout it, or hand it back?", with a megaphone and a gift.]]></title>
            <link>https://medium.com/@codingmadeeasy92/python-print-vs-return-shout-it-or-hand-it-back-with-a-megaphone-and-a-gift-ea60f94438eb?source=rss-250b4c3cbc0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea60f94438eb</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Codingmadeeasy]]></dc:creator>
            <pubDate>Thu, 29 Oct 2026 02:41:49 GMT</pubDate>
            <atom:updated>2026-10-29T02:41:49.780Z</atom:updated>
            <content:encoded><![CDATA[<h3>https://www.instagram.com/reel/DfBNe8XI0SW/?rpxt=MTdkaGRtc3IwcGtiYQ==</h3><h3>2–5.4s, print = shout it: def shout(a, b): print(a + b) and shout(2, 3) send 2 and 3 into the machine. A megaphone shouts a &quot;5&quot; bubble that then vanishes, and the output is 5. The label reads print = shows it, nothing is kept.<br>5.4–8.8s, return = hand it back: def give(a, b): return a + b, then total = give(2, 3) and print(total + 10). A gift box carrying 5 is handed to the total tag, and the output is 15. The label reads return = the value comes back to you.<br>8.8–12.4s, the proof: a = shout(2, 3), b = give(2, 3) and print(a, b) print 5, then None 5. The a tag holds None (&quot;shout() gave nothing&quot;) and b holds 5 (&quot;give() gave 5&quot;).<br>12.4–14.6s, the rule: print is for a human to read and return is for your code to use.<br>14.6–17s: Outro, &quot;print = show it, return = hand it back.</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea60f94438eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why I Taught My Kid to Code With a Turtle (Not a Textbook)]]></title>
            <link>https://medium.com/@codingmadeeasy92/why-i-taught-my-kid-to-code-with-a-turtle-not-a-textbook-983927753782?source=rss-250b4c3cbc0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/983927753782</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Codingmadeeasy]]></dc:creator>
            <pubDate>Wed, 02 Sep 2026 04:00:29 GMT</pubDate>
            <atom:updated>2026-09-02T04:00:29.138Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XjlUMjmmw9GzcsEfdAQsvQ.png" /></figure><p>Most kids’ coding tutorials start with theory — variables, syntax, boring examples that feel like homework. I wanted something different: a way for kids to <em>see</em> their code do something the moment they write it.</p><p>That’s exactly what Python’s Turtle graphics library does. A little digital turtle walks across the screen carrying a pen, and every “forward” or “turn” command leaves a visible trail. A few lines of code, and suddenly there’s a square. A few more, and it’s a star. Keep going, and you’ve got a full rainbow spiral.</p><p>I wrote up the full beginner tutorial — code examples, screenshots of what each one draws, and a few challenges to try together — here:<br> 👉 <a href="https://codemagnet.in/2026/09/02/python-for-kids-made-fun-turn-code-into-colorful-art/">https://codemagnet.in/2026/09/02/python-for-kids-made-fun-turn-code-into-colorful-art/</a></p><p>If you’re looking for a way to introduce a kid to programming without losing them in the first five minutes, this is a good place to start.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=983927753782" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build Vector Search from Scratch in Python: Complete Beginner-Friendly Guide]]></title>
            <link>https://blog.devgenius.io/how-to-build-vector-search-from-scratch-in-python-complete-beginner-friendly-guide-cd8a4fc73955?source=rss-250b4c3cbc0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd8a4fc73955</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[python-programming]]></category>
            <dc:creator><![CDATA[Codingmadeeasy]]></dc:creator>
            <pubDate>Tue, 01 Sep 2026 11:25:58 GMT</pubDate>
            <atom:updated>2026-09-01T11:47:07.885Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1quH3MWzq1ZjQUe6t5qigA.png" /></figure><p>If you’ve used ChatGPT, Google, or any modern recommendation system, you’ve used vector search — even if you didn’t know it. It’s the technology that lets machines find “similar” pieces of text, images, or data, not just exact keyword matches.</p><p>In this guide, we’ll build a working vector search engine from scratch using <strong>pure Python</strong> — no sklearn, no faiss, no external embedding APIs. Just re, math, and collections from the standard library. By the end, you&#39;ll understand exactly what&#39;s happening under the hood before you ever plug in a library.</p><p><em>This post originally appeared on </em><a href="https://codemagnet.in/2026/09/01/how-to-build-vector-search-from-scratch-in-python-complete-guide-with-code-examples/"><em>Code Magnet</em></a><em> — head there for the full formatted version with the downloadable code.</em></p><h3>What Is Vector Search?</h3><p>Vector search works by converting text into a list of numbers (a “vector”) that captures something about its meaning or content. Similar pieces of text end up with similar vectors. To search, you convert your query into a vector too, then find which documents have the closest vectors using a similarity measure.</p><p>We’ll use two classic building blocks:</p><ul><li><strong>TF-IDF (Term Frequency–Inverse Document Frequency)</strong> — a way to turn text into vectors based on word importance</li><li><strong>Cosine similarity</strong> — a way to measure how “close” two vectors are</li></ul><h3>Step 1: Sample Documents and Tokenizer</h3><p>First, we need some text to search through, and a way to break sentences into words (tokens).</p><p>python</p><pre>import re<br>import math<br>from collections import Counter</pre><pre>documents = [<br>    &quot;Python is a popular programming language for data science&quot;,<br>    &quot;Machine learning models require large amounts of training data&quot;,<br>    &quot;Vector search helps find similar documents using embeddings&quot;,<br>    &quot;Data science uses Python and statistics to analyze data&quot;,<br>    &quot;Search engines use vectors to rank relevant documents&quot;,<br>    &quot;Deep learning is a subset of machine learning using neural networks&quot;,<br>]</pre><pre>def tokenize(text):<br>    text = text.lower()<br>    return re.findall(r&quot;[a-z]+&quot;, text)</pre><h3>Step 2: Build the Vocabulary</h3><p>Every unique word across all documents becomes part of our vocabulary. Each document will eventually be represented as a vector of numbers — one number per vocabulary word.</p><p>python</p><pre>def build_vocabulary(docs):<br>    vocab = set()<br>    for doc in docs:<br>        vocab.update(tokenize(doc))<br>    return sorted(vocab)</pre><h3>Step 3: TF-IDF Vectorizer (From Scratch)</h3><p>This is the core of our engine. TF-IDF gives more weight to words that are frequent in a specific document but rare across the whole collection — these words are usually the most meaningful ones.</p><p>python</p><pre>class TFIDFVectorizer:<br>    def __init__(self):<br>        self.vocab = []<br>        self.idf = {}</pre><pre>    def fit(self, docs):<br>        self.vocab = build_vocabulary(docs)<br>        n_docs = len(docs)<br>        df = Counter()<br>        for doc in docs:<br>            for word in set(tokenize(doc)):<br>                df[word] += 1<br>        for word in self.vocab:<br>            self.idf[word] = math.log(n_docs / (1 + df[word])) + 1<br>        return self</pre><pre>    def transform(self, docs):<br>        vectors = []<br>        for doc in docs:<br>            tokens = tokenize(doc)<br>            tf = Counter(tokens)<br>            total = len(tokens)<br>            vector = [(tf[w] / total if total else 0) * self.idf.get(w, 0) for w in self.vocab]<br>            vectors.append(vector)<br>        return vectors</pre><pre>    def fit_transform(self, docs):<br>        self.fit(docs)<br>        return self.transform(docs)</pre><p><strong>What’s happening here:</strong></p><ul><li>fit() learns the vocabulary and calculates IDF (how rare each word is across all documents)</li><li>transform() converts any text into a numeric vector using that vocabulary and IDF</li></ul><h3>Step 4: Cosine Similarity — The Heart of Vector Search</h3><p>Once documents are vectors, we need a way to measure how similar two vectors are. Cosine similarity measures the <em>angle</em> between two vectors — it returns 1 for identical direction, 0 for no similarity.</p><p>python</p><pre>def cosine_similarity(vec_a, vec_b):<br>    dot = sum(a * b for a, b in zip(vec_a, vec_b))<br>    mag_a = math.sqrt(sum(a * a for a in vec_a))<br>    mag_b = math.sqrt(sum(b * b for b in vec_b))<br>    if mag_a == 0 or mag_b == 0:<br>        return 0.0<br>    return dot / (mag_a * mag_b)</pre><h3>Step 5: Putting It All Together — The Search Engine</h3><p>Now we wrap everything into a VectorSearchEngine class that can index documents and search them.</p><p>python</p><pre>class VectorSearchEngine:<br>    def __init__(self):<br>        self.vectorizer = TFIDFVectorizer()<br>        self.doc_vectors = []<br>        self.documents = []</pre><pre>    def index(self, docs):<br>        self.documents = docs<br>        self.doc_vectors = self.vectorizer.fit_transform(docs)<br>        print(f&quot;Indexed {len(docs)} documents.&quot;)<br>        print(f&quot;Vocabulary size: {len(self.vectorizer.vocab)} unique words\n&quot;)</pre><pre>    def search(self, query, top_k=3):<br>        query_vector = self.vectorizer.transform([query])[0]<br>        scores = [(i, cosine_similarity(query_vector, dv)) for i, dv in enumerate(self.doc_vectors)]<br>        scores.sort(key=lambda x: x[1], reverse=True)<br>        results = scores[:top_k]</pre><pre>        print(f&quot;Query: &#39;{query}&#39;&quot;)<br>        print(&quot;-&quot; * 60)<br>        for rank, (idx, score) in enumerate(results, 1):<br>            print(f&quot;Rank {rank} | Score: {score:.4f}&quot;)<br>            print(f&quot;  Document: {self.documents[idx]}&quot;)<br>        print()<br>        return results</pre><h3>Step 6: Running the Engine</h3><p>Let’s index our sample documents and run a few searches:</p><p>python</p><pre>engine = VectorSearchEngine()<br>engine.index(documents)</pre><pre>engine.search(&quot;machine learning and neural networks&quot;)<br>engine.search(&quot;python for data analysis&quot;)<br>engine.search(&quot;finding similar documents with vectors&quot;)</pre><h3>Real Output</h3><pre>Indexed 6 documents.<br>Vocabulary size: 39 unique words</pre><pre>Query: &#39;machine learning and neural networks&#39;<br>------------------------------------------------------------<br>Rank 1 | Score: 0.6070<br>  Document: Deep learning is a subset of machine learning using neural networks<br>Rank 2 | Score: 0.2307<br>  Document: Machine learning models require large amounts of training data<br>Rank 3 | Score: 0.1732<br>  Document: Data science uses Python and statistics to analyze data</pre><pre>Query: &#39;python for data analysis&#39;<br>------------------------------------------------------------<br>Rank 1 | Score: 0.5456<br>  Document: Python is a popular programming language for data science<br>Rank 2 | Score: 0.3838<br>  Document: Data science uses Python and statistics to analyze data<br>Rank 3 | Score: 0.1138<br>  Document: Machine learning models require large amounts of training data</pre><pre>Query: &#39;finding similar documents with vectors&#39;<br>------------------------------------------------------------<br>Rank 1 | Score: 0.3845<br>  Document: Vector search helps find similar documents using embeddings<br>Rank 2 | Score: 0.3845<br>  Document: Search engines use vectors to rank relevant documents<br>Rank 3 | Score: 0.0000<br>  Document: Python is a popular programming language for data science</pre><p>Notice something interesting in the last result: the third-ranked document scores <strong>0.0000</strong>. That’s because our third document shares zero vocabulary words with the query — TF-IDF cosine similarity is purely lexical (word-based), not semantic. It has no idea that “vectors” and “programming language” could ever be related in meaning; it only counts shared words.</p><h3>Limitations of This Approach</h3><p>This from-scratch engine is great for learning, but it has real limits worth knowing before you use it in production:</p><ul><li><strong>No true semantic understanding</strong> — synonyms and related concepts with no shared words score 0, even if they mean the same thing</li><li><strong>No scalability</strong> — comparing a query against every document one by one doesn’t scale past a few thousand documents</li><li><strong>No context awareness</strong> — word order and meaning-in-context are ignored entirely.</li></ul><p><em>Originally published at </em><a href="https://codemagnet.in/2026/09/01/how-to-build-vector-search-from-scratch-in-python-complete-guide-with-code-examples/"><em>codemagnet.in</em></a><em>, where I write about Python, data science, and practical coding tutorials.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd8a4fc73955" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/how-to-build-vector-search-from-scratch-in-python-complete-beginner-friendly-guide-cd8a4fc73955">How to Build Vector Search from Scratch in Python: Complete Beginner-Friendly Guide</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Cookies: How to Create Cookies in JavaScript]]></title>
            <link>https://medium.com/@codingmadeeasy92/javascript-cookies-how-to-create-cookies-in-javascript-572900600517?source=rss-250b4c3cbc0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/572900600517</guid>
            <category><![CDATA[javascript-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <dc:creator><![CDATA[Codingmadeeasy]]></dc:creator>
            <pubDate>Fri, 14 Aug 2026 03:57:48 GMT</pubDate>
            <atom:updated>2026-08-14T03:57:48.981Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5ze-VGN8y69-Ns4G.jpg" /></figure><p>🍪 <strong>What exactly are cookies, and how do you create them using JavaScript?</strong></p><p>Cookies are a fundamental part of web development. They allow websites to store small pieces of information in a user’s browser and can be useful for handling preferences, sessions, and other browser-side data.</p><p>If you’re learning JavaScript or frontend development, understanding cookies is an important skill.</p><p>In this CodeMagnet guide, you’ll learn:</p><ul><li>What JavaScript cookies are</li><li>How cookies work</li><li>How to create cookies using JavaScript</li><li>How to read cookie values</li><li>How to update cookies</li><li>How to delete cookies</li><li>Important cookie attributes developers should understand</li></ul><p>Whether you’re a <strong>beginner learning JavaScript</strong> or a developer looking to refresh your knowledge of browser cookies, this guide provides a practical starting point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/0*Nu2DslI-OJU1YVV3" /></figure><h3>JavaScript Cookies- Example Scenario</h3><p>Consider a user visiting an e-commerce website. The first time they log in, the server might set a cookie with their username and a unique session ID. This information helps the server remember the user and keep them logged in as they navigate through different pages of the website.</p><p><strong>How to create a Cookie in </strong><a href="https://www.javatpoint.com/javascript-weakset"><strong>JavaScript</strong></a><strong>?<br></strong>we can create, read, update, and delete a cookie by using document.cookie property in javascript.</p><p><strong>The following syntax is used to create a cookie:</strong></p><p>Copy code</p><pre>document.cookie=&quot;name=value&quot;;</pre><p>Let us take an example:</p><p>Copy code</p><pre>&lt;!DOCTYPE html&gt;</pre><pre>&lt;html&gt;</pre><pre>&lt;head&gt;</pre><pre>&lt;/head&gt;</pre><pre>&lt;body&gt;</pre><pre>&lt;input type=&quot;button&quot; value=&quot;setCookie&quot; onclick=&quot;setCookie()&quot;&gt;</pre><pre>&lt;input type=&quot;button&quot; value=&quot;getCookie&quot; onclick=&quot;getCookie()&quot;&gt;</pre><pre>&lt;script&gt;</pre><pre>function setCookie()</pre><pre>{</pre><pre>document.cookie=&quot;username=Sona M&quot;;</pre><pre>}</pre><pre>function getCookie()</pre><pre>{</pre><pre>if(document.cookie.length!=0)</pre><pre>{</pre><pre>alert(document.cookie);</pre><pre>}</pre><pre>else</pre><pre>{</pre><pre>alert(&quot;Cookie not available&quot;);</pre><pre>}</pre><pre>}</pre><pre>&lt;/script&gt;</pre><pre>&lt;/body&gt;</pre><pre>&lt;/html&gt;</pre><p>🚀 <strong>Read the complete tutorial on CodeMagnet:</strong></p><p><a href="https://codemagnet.in/2024/07/25/javascript-cookies-how-to-create-cookies-in-javascript/">https://codemagnet.in/2024/07/25/javascript-cookies-how-to-create-cookies-in-javascript/</a></p><p>💡 <strong>Tip:</strong> Cookies may look simple, but understanding attributes such as expires, max-age, path, Secure, and SameSite is important when building real-world web applications.</p><p>If you’re learning JavaScript, bookmark this guide for future reference.</p><p>#JavaScript #WebDevelopment #FrontendDevelopment #JavaScriptTutorial #Coding #Programming #WebDeveloper #CodeMagnet</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=572900600517" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>