<?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 Dr. Alok Pratap on Medium]]></title>
        <description><![CDATA[Stories by Dr. Alok Pratap on Medium]]></description>
        <link>https://medium.com/@alokguy2004?source=rss-1fc5a118a632------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*HylBbVURxmcnYckD.jpeg</url>
            <title>Stories by Dr. Alok Pratap on Medium</title>
            <link>https://medium.com/@alokguy2004?source=rss-1fc5a118a632------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 06:11:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alokguy2004/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[Don’t Just Look for a Job. Find a Place Worth Your Passion.]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/ryukyu-glocal/dont-just-look-for-a-job-find-a-place-worth-your-passion-71f47bfcd14d?source=rss-1fc5a118a632------2"><img src="https://cdn-images-1.medium.com/max/1536/1*r1HudT1Tyq9chDJ9IalEOA.png" width="1536"></a></p><p class="medium-feed-snippet">What Nearly 50 Interviews Taught Me About Hiring</p><p class="medium-feed-link"><a href="https://medium.com/ryukyu-glocal/dont-just-look-for-a-job-find-a-place-worth-your-passion-71f47bfcd14d?source=rss-1fc5a118a632------2">Continue reading on Ryukyu GLOCAL »</a></p></div>]]></description>
            <link>https://medium.com/ryukyu-glocal/dont-just-look-for-a-job-find-a-place-worth-your-passion-71f47bfcd14d?source=rss-1fc5a118a632------2</link>
            <guid isPermaLink="false">https://medium.com/p/71f47bfcd14d</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[recruitment]]></category>
            <category><![CDATA[hiring]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[creativity]]></category>
            <dc:creator><![CDATA[Dr. Alok Pratap]]></dc:creator>
            <pubDate>Wed, 02 Sep 2026 14:05:05 GMT</pubDate>
            <atom:updated>2026-09-02T19:40:13.954Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Stop Hiding It: Why Using AI Is Not Cheating — It’s Evolving]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/ryukyu-glocal-tech/stop-hiding-it-why-using-ai-is-not-cheating-its-evolving-8545bf0b2ea6?source=rss-1fc5a118a632------2"><img src="https://cdn-images-1.medium.com/max/1536/1*NXe90AncW2ProuHD-WmJ3Q.png" width="1536"></a></p><p class="medium-feed-snippet">There&#x2019;s a strange paradox happening right now.</p><p class="medium-feed-link"><a href="https://medium.com/ryukyu-glocal-tech/stop-hiding-it-why-using-ai-is-not-cheating-its-evolving-8545bf0b2ea6?source=rss-1fc5a118a632------2">Continue reading on Ryukyu GLOCAL Tech »</a></p></div>]]></description>
            <link>https://medium.com/ryukyu-glocal-tech/stop-hiding-it-why-using-ai-is-not-cheating-its-evolving-8545bf0b2ea6?source=rss-1fc5a118a632------2</link>
            <guid isPermaLink="false">https://medium.com/p/8545bf0b2ea6</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[generative-ai-solution]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[creativity]]></category>
            <dc:creator><![CDATA[Dr. Alok Pratap]]></dc:creator>
            <pubDate>Wed, 11 Feb 2026 09:32:39 GMT</pubDate>
            <atom:updated>2026-02-11T09:32:39.780Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[2025: The Year Everything Became Real]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@alokguy2004/2025-the-year-everything-became-real-0d6655858ca8?source=rss-1fc5a118a632------2"><img src="https://cdn-images-1.medium.com/max/1024/1*3IsgosEZEJMJykvy0A5baQ@2x.jpeg" width="1024"></a></p><p class="medium-feed-link"><a href="https://medium.com/@alokguy2004/2025-the-year-everything-became-real-0d6655858ca8?source=rss-1fc5a118a632------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@alokguy2004/2025-the-year-everything-became-real-0d6655858ca8?source=rss-1fc5a118a632------2</link>
            <guid isPermaLink="false">https://medium.com/p/0d6655858ca8</guid>
            <dc:creator><![CDATA[Dr. Alok Pratap]]></dc:creator>
            <pubDate>Wed, 31 Dec 2025 12:43:52 GMT</pubDate>
            <atom:updated>2025-12-31T12:43:52.531Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Episode 2: Between Two Worlds – The Weight I Don’t Tell Anyone About]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@alokguy2004/episode-2-between-two-worlds-the-weight-i-dont-tell-anyone-about-a059c1599c31?source=rss-1fc5a118a632------2"><img src="https://cdn-images-1.medium.com/max/1319/1*Qi4AqljAR_f2uSvfNSbfDg@2x.jpeg" width="1319"></a></p><p class="medium-feed-link"><a href="https://medium.com/@alokguy2004/episode-2-between-two-worlds-the-weight-i-dont-tell-anyone-about-a059c1599c31?source=rss-1fc5a118a632------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@alokguy2004/episode-2-between-two-worlds-the-weight-i-dont-tell-anyone-about-a059c1599c31?source=rss-1fc5a118a632------2</link>
            <guid isPermaLink="false">https://medium.com/p/a059c1599c31</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[business]]></category>
            <dc:creator><![CDATA[Dr. Alok Pratap]]></dc:creator>
            <pubDate>Tue, 18 Nov 2025 08:22:20 GMT</pubDate>
            <atom:updated>2025-11-18T08:22:20.978Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Episode 1: The Second He Looked Away]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@alokguy2004/episode-1-the-second-he-looked-away-b00b6ab867e1?source=rss-1fc5a118a632------2"><img src="https://cdn-images-1.medium.com/max/1319/1*jf6MrlKKDFqZgLGWzddi5Q@2x.jpeg" width="1319"></a></p><p class="medium-feed-link"><a href="https://medium.com/@alokguy2004/episode-1-the-second-he-looked-away-b00b6ab867e1?source=rss-1fc5a118a632------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@alokguy2004/episode-1-the-second-he-looked-away-b00b6ab867e1?source=rss-1fc5a118a632------2</link>
            <guid isPermaLink="false">https://medium.com/p/b00b6ab867e1</guid>
            <category><![CDATA[decision-making]]></category>
            <category><![CDATA[networking-event]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[cofounders]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Dr. Alok Pratap]]></dc:creator>
            <pubDate>Fri, 14 Nov 2025 03:12:04 GMT</pubDate>
            <atom:updated>2025-11-14T03:12:04.852Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Why Teach Engineering If AI Is Taking Over?]]></title>
            <link>https://medium.com/@alokguy2004/why-teach-engineering-if-ai-is-taking-over-7b805450e56f?source=rss-1fc5a118a632------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b805450e56f</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[layoffs]]></category>
            <category><![CDATA[university]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[information-technology]]></category>
            <dc:creator><![CDATA[Dr. Alok Pratap]]></dc:creator>
            <pubDate>Wed, 06 Aug 2025 04:53:11 GMT</pubDate>
            <atom:updated>2025-08-12T03:48:25.959Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3mo3lBFrlFr1Wd9cMsRKvw.png" /></figure><p>Artificial intelligence (AI) is changing the face of industry at a staggering pace, especially in fields like engineering, coding, and data science. Reports of companies automating technical tasks, reducing staff, or transforming workflows with tools like ChatGPT are everywhere. At the same time, many universities continue to offer traditional engineering courses — and often restrict the use of the very AI tools companies are embracing. This contradiction can seem confusing, even frustrating, to future engineers and students asking: If businesses want engineers to use AI, and even replace some jobs with it, why are universities teaching engineering as they always have, and why do they limit AI tools in coursework?</p><p>Let’s dig deeper, uncovering the real reasons behind these seemingly opposite approaches and why, in fact, both are critical for the future of engineering.</p><h3>Engineering Is Evolving, Not Disappearing</h3><p>The fear that AI will soon make engineers obsolete is based on a partial truth. AI — especially large language models like ChatGPT and generative design algorithms — can automate many routine or repetitive engineering tasks. These include:</p><ul><li>Drafting standard technical reports or documentation,</li><li>Processing large data sets,</li><li>Running computational simulations,</li><li>Writing template code,</li><li>Even preliminary design optimization [<a href="https://www.amtec.us.com/blog/the-impact-of-ai-and-automation-on-the-engineering-workforce">1</a>], [<a href="https://careers.atkinsrealis.com/blogs/2022-5/the-impact-of-artificial-intelligence-on-engineering">2</a>], [<a href="https://bernardmarr.com/10-amazing-real-world-examples-of-how-companies-are-using-chatgpt-in-2023/">3</a>]</li></ul><p>But engineering, at its core, is much more than these tasks. The profession has always been about solving new problems, bridging disciplines, making critical judgments when the unexpected happens, and responsibly integrating technology into society. AI is not replacing these needs — if anything, it’s amplifying them.</p><h3>AI Is a Tool, Not a Replacement</h3><p>AI is best viewed as a powerful tool — a force multiplier for engineers. It can rapidly process information, suggest solutions, and automate what once took hours. However, AI models can also make mistakes, lack real-world context, or fail to spot subtle safety, ethical, or practical issues. The latest advances actually make the “human in the loop” even more vital[<a href="https://www.hindustantimes.com/education/employment-news/ais-threat-to-engineering-jobs-why-critical-thinking-is-key-for-engineers-101728479656884.html">4</a>]:</p><ul><li>Who checks if an AI-designed bridge is safe?</li><li>Who interprets unexpected data the AI cannot explain?</li><li>Who integrates new discoveries across mechanical, electronics, and environmental fields to solve big challenges?</li></ul><p>These are jobs for well-trained engineers — bolstered, not replaced, by AI.</p><h3>How Universities Are Responding: Adapting to an AI World</h3><p>It’s a mistake to view universities as stuck in the past. Leading institutions worldwide are rapidly updating their engineering programs. The best courses now blend classical engineering principles with new content in:</p><ul><li>Machine learning,</li><li>Robotics,</li><li>AI ethics,</li><li>Data analysis,</li><li>Digital twins and smart manufacturing,</li><li>Multidisciplinary teamwork (e.g., combining engineering with life sciences, business, or environmental studies) [<a href="https://indoreinstitute.com/blog-post/exploring-the-role-of-ai-in-engineering-programs-insights/">5</a>], [<a href="https://bera-journals.onlinelibrary.wiley.com/doi/abs/10.1002/rev3.70044">6</a>], [<a href="https://www.tandfonline.com/doi/full/10.1080/22054952.2025.2467500">7</a>], [<a href="https://thehustle.co/originals/the-university-trying-to-bring-ai-to-every-industry">8</a>]</li></ul><p>Many have launched specialized AI engineering degrees or incorporated AI modules into existing departments [<a href="https://www.nbcnews.com/tech/tech-news/ai-degree-major-college-university-schools-rcna163462">9</a>]. The shift is real; universities are preparing graduates not just to operate machines, but to design, interpret, audit, improve, and guide the use of AI in real-world systems.</p><h3>Why Do Universities Restrict ChatGPT, Even as Companies Embrace It?</h3><p>This is the heart of the disconnect for many students. While it might seem old-fashioned or even hypocritical for universities to ban or limit ChatGPT and similar AI tools when businesses use them every day, there are strong (if evolving) reasons:</p><h3>Academic Integrity &amp; Learning Outcomes</h3><ul><li><strong>Assessment of True Skills</strong>: Assignments are meant to test what a student knows, not what a chatbot can produce. If students hand in AI-generated essays or code, universities cannot measure whether they truly grasp core principles[<a href="https://www.kdnuggets.com/2023/06/effects-chatgpt-schools-getting-banned.html">10</a>], [<a href="https://technologymagazine.com/articles/is-chatgpt-devaluing-university-education-in-the-uk-us">11</a>], [<a href="https://www.universityworldnews.com/post.php?story=20230222132357841">12</a>]. This risks turning education into a box-ticking exercise.</li><li><strong>Shallow Learning Risk</strong>: Over-reliance on AI can mean students never deeply internalize skills. The very purpose of higher education is to push people to think independently and creatively — a capability developed only by wrestling with hard problems themselves[<a href="https://technologymagazine.com/articles/is-chatgpt-devaluing-university-education-in-the-uk-us">11</a>], [<a href="https://www.universityworldnews.com/post.php?story=20230222132357841">12</a>], [<a href="https://link.springer.com/article/10.1007/s10639-025-13575-9">13</a>].</li></ul><h3>Developing Foundational Abilities</h3><ul><li><strong>Building From Basics</strong>: In engineering, foundational knowledge is crucial. Using AI before mastering the basics may produce impressive short-term results, but leaves students unable to face new challenges later. Universities emphasize hands-on labs, critical thinking exercises, and manual problem-solving before introducing automation tools.</li><li><strong>Critical Evaluation</strong>: AI can make mistakes and hallucinate answers. Universities want students to learn how to cross-check, validate, and not simply accept machine outputs — a skill desperately needed in industry[<a href="https://www.straitstimes.com/asia/east-asia/universities-in-japan-restrict-students-use-of-chatgpt">14</a>], [<a href="https://japannews.yomiuri.co.jp/science-nature/technology/20230409-102541/">15</a>].</li></ul><h3>Plagiarism, Ethics &amp; Privacy</h3><ul><li><strong>Authorship &amp; Plagiarism</strong>: If everyone uses AI tools identically, academic work risks becoming undistinguishable and original thought is lost. Plagiarism policies still apply, regardless of whether the source is the internet or a chatbot[<a href="https://www.kdnuggets.com/2023/06/effects-chatgpt-schools-getting-banned.html">10</a>], [<a href="https://www.universityworldnews.com/post.php?story=20230222132357841">12</a>].</li><li><strong>Privacy and Data Protection</strong>: Assignments, proprietary research, and case studies can include sensitive information. Uploading them to online AI platforms can risk confidential data leaks[<a href="https://www.kdnuggets.com/2023/06/effects-chatgpt-schools-getting-banned.html">10</a>], [<a href="https://www.straitstimes.com/asia/east-asia/universities-in-japan-restrict-students-use-of-chatgpt">14</a>].</li></ul><h3>Transitioning Toward Responsible Use</h3><p>University bans are not set in stone. Increasingly, forward-thinking programs are teaching AI literacy: how to use generative tools responsibly, cite them accurately, and leverage their power as part of a human-AI partnership. The challenge is ensuring students first learn to think, then learn to use these tools effectively, responsibly, and ethically[<a href="https://www.universityworldnews.com/post.php?story=20230222132357841">12</a>], [<a href="https://link.springer.com/article/10.1007/s10639-025-13575-9">13</a>], [<a href="https://www.frontiersin.org/journals/education/articles/10.3389/feduc.2024.1354929/full">16</a>], [<a href="https://verkkolehdet.jamk.fi/finnish-business-review/2024/10/08/how-chatgpt-is-used-in-higher-education-and-perceived-benefits-risks-and-concerns/">17</a>].</p><h3>Why Do Companies Want Employees to Use ChatGPT and AI?</h3><p>In business, priorities shift:</p><ul><li><strong>Efficiency Is Everything</strong>: Companies are under constant pressure to do more with less. AI boosts productivity — streamlining customer support, summarizing technical documents, assisting with code, and generating test cases. This lets human employees focus on creative or high-value work[<a href="https://bernardmarr.com/10-amazing-real-world-examples-of-how-companies-are-using-chatgpt-in-2023/">3</a>], [<a href="https://masterofcode.com/blog/chatgpt-statistics">18</a>], [<a href="https://www.maibornwolff.de/en/know-how/chatgpt-in-business/">19</a>], [<a href="https://northwest.education/insights/careers/top-8-chatgpt-use-cases-for-businesses/">20</a>].</li><li><strong>Employees Have Core Expertise</strong>: By the time someone is hired, companies expect them to already have foundational skills and judgment. AI tools are deployed as force multipliers, not as replacements for deep understanding[<a href="https://masterofcode.com/blog/chatgpt-statistics">18</a>], [<a href="https://www.maibornwolff.de/en/know-how/chatgpt-in-business/">19</a>].</li><li><strong>Enterprise Controls</strong>: Businesses often use secure, enterprise-grade versions of chatbots, with privacy controls, usage monitoring, and integration with other systems, reducing risks present in open tools[<a href="https://masterofcode.com/blog/chatgpt-statistics">18</a>].</li><li><strong>Competitive Edge</strong>: Organizations that creatively harness AI can achieve faster innovation, lower costs, and launch novel services — a key advantage in today’s tech-driven market[<a href="https://masterofcode.com/blog/chatgpt-statistics">18</a>], [<a href="https://northwest.education/insights/careers/top-8-chatgpt-use-cases-for-businesses/">20</a>], [<a href="https://research.aimultiple.com/chatgpt-use-cases/">21</a>].</li></ul><h3>The University-Industry Gap: Navigating Different Roles</h3><p>This difference is not a contradiction but a reflection of different objectives and responsibilities:</p><h3>Bridging the Gap: The Future of AI and Engineering Education</h3><p>The real future lies in integration, not isolation. Most education experts and tech leaders believe the solution is not to ban AI, but to teach students how and when to use it wisely. Expect to see:</p><ul><li>Universities updating curricula to include AI literacy, responsible usage, and hands-on practice with tools like ChatGPT[<a href="https://link.springer.com/article/10.1007/s10639-025-13575-9">13</a>], [<a href="https://www.frontiersin.org/journals/education/articles/10.3389/feduc.2024.1354929/full">16</a>], [<a href="https://verkkolehdet.jamk.fi/finnish-business-review/2024/10/08/how-chatgpt-is-used-in-higher-education-and-perceived-benefits-risks-and-concerns/">17</a>].</li><li>Assessments that reward original thought, critical evaluation, and real-world problem solving — sometimes allowing, but always requiring disclosure of AI assistance.</li><li>Industry partnerships where students work with AI on real projects, learning both strengths and limitations of automated assistance.</li><li>Emphasis on <em>what</em> AI can and can’t do: human engineers’ value is in creativity, ethics, systems thinking, leadership, empathy, and innovation — areas machines still struggle to replicate at advanced levels[<a href="https://careers.atkinsrealis.com/blogs/2022-5/the-impact-of-artificial-intelligence-on-engineering">2</a>], [<a href="https://www.hindustantimes.com/education/employment-news/ais-threat-to-engineering-jobs-why-critical-thinking-is-key-for-engineers-101728479656884.html">4</a>], [<a href="https://indoreinstitute.com/blog-post/exploring-the-role-of-ai-in-engineering-programs-insights/">5</a>].</li></ul><h3>Conclusion: Engineering’s Future Is Human + Machine</h3><p>As companies continue to automate routine engineering work, the engineer’s core value is not vanishing, but shifting. AI will continue to eliminate certain rote tasks but create ever more opportunities for those who can harness these systems, supervise them, and expand their potential. Universities may restrict the use of specific AI tools now, but the best are moving rapidly to equip students with both robust foundational skills and the knowledge of how to use (and critically assess) AI in real-world contexts.</p><p>Tomorrow’s engineers won’t be replaced by AI — they’ll be the ones shaping its future, leading interdisciplinary teams, and solving challenges AI cannot even comprehend. The continuity and evolution of engineering education is not just sensible — it’s essential, laying the groundwork for human ingenuity to flourish in the age of machines.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b805450e56f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[List Multiplication in Python]]></title>
            <link>https://medium.com/programming-concepts/list-multiplication-in-python-bd6ab667742a?source=rss-1fc5a118a632------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd6ab667742a</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[python-development]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Dr. Alok Pratap]]></dc:creator>
            <pubDate>Sat, 14 Jun 2025 02:55:58 GMT</pubDate>
            <atom:updated>2025-06-14T08:28:30.640Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*_ME3bpORlPI2TecC2YcWcQ@2x.jpeg" /></figure><p>When you’re learning Python, it’s easy to assume that multiplying a list by a number will multiply each element inside the list. However, Python has a unique way of handling this operation. Let’s dive into the details!</p><p><strong>What Happens When You Multiply a List in Python?</strong></p><p>Suppose you have a list:</p><pre>x = [1, 2, 3]</pre><p>Now, what do you think happens if you write x * 2?</p><p><strong>The Common Misconception</strong></p><p>Many beginners expect the result to be [2, 4, 6] – that is, each element multiplied by 2. But that’s not what happens!</p><p><strong>The Actual Output</strong></p><p>In Python, when you multiply a list by an integer, the list is repeated that many times. So:</p><pre>print(x * 2)</pre><p><strong>Output</strong>:</p><pre>[1, 2, 3, 1, 2, 3]</pre><p>The entire list is concatenated with itself, not multiplied element-wise.</p><p><strong>Why Does Python Behave This Way?</strong></p><p>The * operator for lists is defined as a repetition operator. It repeats the entire sequence, rather than performing arithmetic operations on the elements.</p><p>This behavior is consistent across Python collections like lists and tuples.</p><p><strong>Then How to Multiply Each Element in a List</strong></p><p>If your goal is to multiply each element by a number, you’ll need a different approach. The most Pythonic way is to use a <strong>list comprehension</strong>:</p><pre>x = [1, 2, 3]<br>result = [i * 2 for i in x]<br>print(result)</pre><p><strong>Output</strong>:</p><pre>[2, 4, 6]</pre><p>That’s all folks!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd6ab667742a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/programming-concepts/list-multiplication-in-python-bd6ab667742a">List Multiplication in Python</a> was originally published in <a href="https://medium.com/programming-concepts">Programming Concepts…..</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Python Variables: Is x = y a Copy or a Reference?]]></title>
            <link>https://medium.com/programming-concepts/python-variables-is-x-y-a-copy-or-a-reference-714e42e65d0c?source=rss-1fc5a118a632------2</link>
            <guid isPermaLink="false">https://medium.com/p/714e42e65d0c</guid>
            <category><![CDATA[logic]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[refactor]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Dr. Alok Pratap]]></dc:creator>
            <pubDate>Thu, 29 May 2025 00:57:51 GMT</pubDate>
            <atom:updated>2025-05-29T00:57:51.536Z</atom:updated>
            <content:encoded><![CDATA[<p>💬 “When I write y = x, am I copying the data or just pointing to it?”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*YH3sfUp5JmkxKTtbwGnc4A.png" /></figure><p>This is one of the most misunderstood questions for Python beginners — and even intermediate developers. The answer depends on <strong>what kind of object </strong><strong>x is</strong>, and <strong>how memory works</strong> behind the scenes.</p><p>Let’s unpack this step-by-step.</p><p>🧪 The Code Example</p><pre>x = [2]<br>y = x<br>y.append(4)<br>x.append(6)<br>print(y)</pre><p><strong>What will the output be?</strong></p><p><strong>✅ Answer:</strong> [2, 4, 6]</p><p>But why?</p><h3>🔬 What’s Actually Happening</h3><p>Let’s look at each line:</p><ol><li>x = [2]<br> Creates a list object in memory. x points to it.</li><li>y = x<br> This <strong>does not</strong> copy the list. It just makes y point to the <strong>same</strong> list.</li><li>y.append(4)<br> Modifies the shared list. Now it’s [2, 4].</li><li>x.append(6)<br> Again modifies the <strong>same</strong> list. Now it’s [2, 4, 6].</li></ol><p>🧠 Memory Visualization</p><p>Here’s what it looks like in memory:</p><pre>[Memory Object]  --&gt;  [2, 4, 6]<br>   ↑         ↑<br>   x         y</pre><p>There is only <strong>one list</strong> in memory. Both x and y point to it.</p><p>⚠️ Mutable vs Immutable</p><p>Python handles variables differently based on the type:</p><pre>Type                          Behavior                   Copy or Reference?<br>list, dict, set               Mutable objects             Reference<br>int, float, str, tuple        Immutable objects           Copy of value</pre><p>❌ What if We Try with an Integer?</p><pre>x = 2<br>y = x<br>y.append(4)</pre><pre>AttributeError: &#39;int&#39; object has no attribute &#39;append&#39;</pre><ul><li>int is <strong>immutable</strong>.</li><li>y = x copies the value 2.</li><li>You can’t append() to an integer.</li></ul><p>🧬 Do You Want a Copy?</p><p>If your goal is to create a <strong>separate copy</strong> (so changes toy don’t affect x), use:</p><pre>y = x.copy()<br># or<br>y = list(x)</pre><p>Now they’ll be independent.</p><p>🔍 Why Use y = x at All?</p><p>You might think: <em>“If it’s the same object, why use two names?”</em></p><p>There are valid use cases:</p><ul><li>✅ For readability (cached_data = data)</li><li>✅ For temporary logic in functions</li><li>✅ For situations where reference behavior is intended</li></ul><p>🧰 Bonus: Check Memory with id()</p><pre>x = [2]<br>y = x<br>print(id(x) == id(y))  # True<br><br>y = x.copy()<br>print(id(x) == id(y))  # False</pre><h3>🎯 Key Takeaways</h3><ul><li>y = x <strong>does not copy</strong> data for mutable objects — it’s a reference.</li><li>Use .copy() or list(x) to actually duplicate a list.</li><li>Immutable objects behave differently — they copy values.</li><li>Always understand the <strong>mutability</strong> of your object to avoid bugs.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=714e42e65d0c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/programming-concepts/python-variables-is-x-y-a-copy-or-a-reference-714e42e65d0c">🧠 Python Variables: Is x = y a Copy or a Reference?</a> was originally published in <a href="https://medium.com/programming-concepts">Programming Concepts…..</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring Mutable Objects and Immutable Literals]]></title>
            <link>https://medium.com/programming-concepts/exploring-mutable-objects-and-immutable-literals-5c25f8c7501a?source=rss-1fc5a118a632------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c25f8c7501a</guid>
            <category><![CDATA[mutable-objects]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[programming-tips]]></category>
            <category><![CDATA[immutable-objects]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Dr. Alok Pratap]]></dc:creator>
            <pubDate>Wed, 12 Jul 2023 11:32:29 GMT</pubDate>
            <atom:updated>2023-07-12T11:32:29.199Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*flCjLnXIFhgFJkB30YjN0g.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@cdr6934?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Chris Ried</a> on <a href="https://unsplash.com/photos/ieic5Tq8YMk?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>Mutable Object</h3><p>A mutable object is an object whose state or value can be changed after it is created. This means that you can modify its properties, add or remove elements, or perform other operations that alter its internal state. Examples of mutable objects include lists, dictionaries, sets, and custom-defined classes.</p><p>For example, consider a list in Python:</p><pre>my_list = [1, 2, 3]<br>my_list.append(4)<br>print(my_list)  # Output: [1, 2, 3, 4]</pre><p>In the above example, the my_list object is mutable because we can modify it by appending a new element to it. The list can be changed even after it is created.</p><h3>Immutable Literal</h3><p>An immutable literal refers to a value or object whose state cannot be changed once it is created. Immutable literals are typically used for representing constant or fixed values that should not be modified. Examples of immutable literals include numbers, strings, and tuples.</p><p>For example, consider a string in Python:</p><pre>my_string = &quot;Hello&quot;<br>new_string = my_string.upper()<br>print(new_string)  # Output: &quot;HELLO&quot;</pre><p>In the above example, the my_string object is immutable because we cannot change its internal state directly. Instead, we create a new string object new_string by applying the upper() method, which returns a modified version of the string in uppercase. The original string remains unchanged.</p><p>Now, let’s consider the ctx object (instance of TestContext). Since it is described as a mutable object, it means that its properties and state can be modified.</p><pre>class TestContext:<br>    def __init__(self, value):<br>        self.value = value<br><br>ctx = TestContext(10)<br>ctx.value = 20<br>print(ctx.value)  # Output: 20</pre><p>The above example ctx is an instance of the TestContext class, which has a mutable property value. We can modify the value ctx.value by assigning a new value to it (ctx.value = 20). Thus, ctx is mutable because its internal state can be changed.</p><p>It is important to note that mutability and immutability are properties of objects or literals, and they determine whether or not you can change their state.</p><p>That’s all folks!!!</p><p>Stay tuned for more!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c25f8c7501a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/programming-concepts/exploring-mutable-objects-and-immutable-literals-5c25f8c7501a">Exploring Mutable Objects and Immutable Literals</a> was originally published in <a href="https://medium.com/programming-concepts">Programming Concepts…..</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Computer Vision Questions and Answers — Part 1]]></title>
            <link>https://medium.com/@alokguy2004/computer-vision-questions-and-answers-part-1-9b2d84faa526?source=rss-1fc5a118a632------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b2d84faa526</guid>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[questions-answers]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Dr. Alok Pratap]]></dc:creator>
            <pubDate>Sun, 26 Mar 2023 10:05:57 GMT</pubDate>
            <atom:updated>2023-03-26T10:05:57.391Z</atom:updated>
            <content:encoded><![CDATA[<h3>Computer Vision Questions and Answers — Part 1</h3><p>I am writing some questions (in series) that might be important for basic knowledge or for quick interview preparations in Computer Vision. I will keep adding more questions. Please, let me know if it&#39;s helpful.</p><p>So here we go:</p><ol><li>What is computer vision?</li></ol><p>A: Computer vision is a field of study that focuses on enabling machines to interpret and understand visual data from the world around them.</p><p>2. What is an image processing pipeline?</p><p>A: An image processing pipeline is a sequence of operations applied to an image to extract relevant information or enhance certain features.</p><p>3. What is an image filter?</p><p>A: An image filter is a mathematical operation applied to an image to modify its appearance or extract specific features.</p><p>4. What is a convolutional neural network (CNN)?</p><p>A: A convolutional neural network (CNN) is a type of deep learning network that is particularly well-suited for image recognition and classification tasks.</p><p>5. What is the difference between supervised and unsupervised learning?</p><p>A: Supervised learning involves training a machine learning model with labeled data, while unsupervised learning involves training a model on unlabeled data.</p><p>6. What is the difference between a traditional computer vision approach and a deep learning approach?</p><p>A: Traditional computer vision approaches rely on hand-crafted features and algorithms, while deep learning approaches use neural networks to learn features directly from the data.</p><p>7. What is object detection?</p><p>A: Object detection is the task of identifying and localizing objects within an image or video.</p><p>8. What is semantic segmentation?</p><p>A: Semantic segmentation is the task of assigning a label to each pixel in an image, indicating the object or region to which it belongs.</p><p>9. What is optical flow?</p><p>A: Optical flow is the pattern of apparent motion of objects, surfaces, and edges in a visual scene caused by the relative motion between the observer and the scene.</p><p>10. What is feature extraction?</p><p>A: Feature extraction is the process of identifying and isolating relevant information from an image or signal for further analysis.</p><p>11. What is image recognition?</p><p>A: Image recognition is the task of identifying and categorizing objects within an image.</p><p>12. What is the difference between object tracking and object recognition?</p><p>A: Object tracking involves following the movement of a particular object over time, while object recognition involves identifying the object within a single image or video frame.</p><p>13. What is an anchor box in object detection?</p><p>A: An anchor box is a predefined bounding box used as a reference during object detection to identify the location of an object.</p><p>14. What is transfer learning?</p><p>A: Transfer learning is the technique of using a pre-trained model as the starting point for training a new model on a related task.</p><p>15. What is the mean Average Precision (mAP)?</p><p>A: mAP is a metric used to evaluate the accuracy of object detection models by measuring the average precision across multiple levels of recall.</p><p>16. What is batch normalization?</p><p>A: Batch normalization is a technique used to improve the training of deep neural networks by normalizing the inputs to each layer.</p><p>17. What is ReLU activation function?</p><p>A: The Rectified Linear Unit (ReLU) is a popular activation function used in deep learning networks to introduce nonlinearity into the model.</p><p>18. What is dropout regularization?</p><p>A: Dropout regularization is a technique used to prevent overfitting in deep neural networks by randomly dropping out some neurons during training.</p><p>19. What is a loss function?</p><p>A: A loss function is a mathematical function used to measure the difference between the predicted and actual outputs of a machine learning model.</p><p>20. What is backpropagation?</p><p>A: Backpropagation is the algorithm used to compute the gradient of the loss function with respect to the weights of a neural network, enabling the weights to be updated during training.</p><p>21. What is mean squared error (MSE)?</p><p>A: MSE is a common loss function used in regression problems to measure the difference between the predicted and actual values.</p><p>22. What is image augmentation?</p><p>A: Image augmentation is the process of generating new training images by applying transformations such as rotation, scaling, and flipping to the existing images.</p><p>23. What is a data generator in deep learning?</p><p>A: A data generator is a function used to generate batches of training data on the fly during training, reducing the memory requirements of the model.</p><p>24. What is the difference between a fully connected layer and a convolutional layer in a neural network?</p><p>A: A fully connected layer connects every neuron in one layer to every neuron in the next layer, while a convolutional layer only connects each neuron to a small region of the previous layer.</p><p>25. What is a bounding box regression?</p><p>A: Bounding box regression is the process of predicting the coordinates of a bounding box around an object within an image or video.</p><p>26. What is a hyperparameter in a machine learning model?</p><p>A: A hyperparameter is a parameter that determines the behavior of the machine learning model but is not learned from the data during training.</p><p>27. What is mean Absolute Error (MAE)?</p><p>A: MAE is a loss function used in regression problems to measure the average absolute difference between the predicted and actual values.</p><p>28. What is a histogram of oriented gradients (HOG)?</p><p>A: A histogram of oriented gradients is a feature descriptor used in object detection that captures the distribution of edge orientations within an image.</p><p>29. What is a Haar cascade classifier?</p><p>A: A Haar cascade classifier is a type of object detection algorithm that uses a set of trained filters to detect the presence of objects within an image.</p><p>30. What is the difference between L1 and L2 regularization?</p><p>A: L1 regularization encourages sparsity in the model by adding a penalty term based on the absolute value of the weights, while L2 regularization adds a penalty term based on the square of the weights.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b2d84faa526" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>