<?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 Pranshu Jain on Medium]]></title>
        <description><![CDATA[Stories by Pranshu Jain on Medium]]></description>
        <link>https://medium.com/@pranshu2105j?source=rss-7fe89ccebe8a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pMDH2PzmhvtjzAFvm7jNpg.jpeg</url>
            <title>Stories by Pranshu Jain on Medium</title>
            <link>https://medium.com/@pranshu2105j?source=rss-7fe89ccebe8a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 09:05:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pranshu2105j/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[Beyond the Click: The Comprehensive Guide to Mastering Paid Search]]></title>
            <link>https://medium.com/illuminations-mirror/beyond-the-click-the-comprehensive-guide-to-mastering-paid-search-2a8afe73953b?source=rss-7fe89ccebe8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a8afe73953b</guid>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[ppc-marketing]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[digital-marketing]]></category>
            <dc:creator><![CDATA[Pranshu Jain]]></dc:creator>
            <pubDate>Tue, 17 Mar 2026 18:32:45 GMT</pubDate>
            <atom:updated>2026-03-23T09:28:03.346Z</atom:updated>
            <content:encoded><![CDATA[<p>We’ve all seen the ‘Sponsored’ tag at the top of our search results, but few truly understand the complex engine driving those three little lines of text. Navigating the world of SEM can feel like learning a new language, but once you master the KPIs and the strategy behind them, you unlock the fastest growth lever in digital marketing.</p><h3>What is Paid Search?</h3><p>Paid Search is a digital advertising strategy where businesses bid on specific keywords to display their ads at the top of search engine results pages (SERPs). By paying search engines like Google or Bing, advertisers ensure their brand is the first thing a user sees the moment they search for relevant terms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aHD9R6X6ek7XAV3GXQlTEg.png" /><figcaption>Image by <a href="https://medium.com/u/7fe89ccebe8a">Pranshu Jain</a></figcaption></figure><h3>What are the KPIs to check?</h3><p>Monitoring the right metrics ensures you aren’t just spending money, but buying the right kind of attention. Here is how to break down your measurement strategy:</p><h4>1. Branded Campaigns (Protecting Your Territory)</h4><p><em>Focus: Brand Health and Dominance.</em></p><ul><li><strong>Reach (R):</strong> <strong>Impression Share (IS)</strong> &amp; <strong>Ad Position</strong>. You want to own 90%+ of the “Share of Voice” (SoV) for your own name.</li><li><strong>Engagement (E):</strong> <strong>Total Visits</strong> and <strong>CTR</strong>. A low CTR on your own brand name is a red flag that your ad copy isn’t hitting the mark.</li><li><strong>Quality (Q):</strong> <strong>Qualified Site Visits</strong>. Look for <strong>High-Value Actions (HVA) </strong>like clicking a “Contact Us” button and a low <strong>Bounce Rate</strong>.</li></ul><h4>2. Unbranded / Generic Campaigns (Capturing New Intent)</h4><p><em>Focus: Efficiency and Discovery.</em></p><ul><li><strong>Reach (R):</strong> <strong>Clicks &amp; CTR</strong>. This measures how relevant your “generic” solution is to a user’s broad problem.</li><li><strong>Engagement (E):</strong> <strong>CPC (Cost Per Click)</strong> &amp; <strong>Engagement Rate</strong>. You want to ensure you aren’t overpaying for top-of-funnel traffic.</li><li><strong>Quality (Q):</strong> <strong>Unbounced Visits</strong> &amp; <strong>Time on Page</strong>. Since these users don’t know your brand yet, “dwell time” is a massive indicator of lead quality.</li></ul><h4>3. Competitor Campaigns (The “Conquest” Strategy)</h4><p><em>Focus: Disruption and Market Share.</em></p><ul><li><strong>Reach (R):</strong> <strong>Impression Share vs. Competitors.</strong> Use “Auction Insights” to see how often you appear directly above or below a specific rival.</li><li><strong>Efficiency (E):</strong> <strong>CPEv (Cost Per Engaged Visit).</strong> Competitor keywords are notoriously expensive; tracking the cost per <em>meaningful</em> visit is crucial.</li><li><strong>Quality (Q):</strong> <strong>Assisted Conversions.</strong> Users searching for a competitor might not convert immediately, so check if your ad “planted a seed” that led to a sale later.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7YITJKfO82hNYDL6LLvF1Q.png" /><figcaption>Image by <a href="https://medium.com/u/7fe89ccebe8a">Pranshu Jain</a></figcaption></figure><h3>How are they compared?</h3><ul><li><strong>Industry Benchmarks:</strong> Compare your KPIs against third-party or vendor-shared data to see where you stand in your vertical.</li><li><strong>Historical Data:</strong> Analyze internal trends and <strong>HPI (Historical Performance Index)</strong> to track growth over time.</li><li><strong>Campaign Objectives:</strong> Align your metrics with the specific goals (Awareness vs. Conversion) set during the planning phase.</li></ul><h3>What does “Good” look like?</h3><ul><li><strong>Branded Impression Share:</strong> Should consistently remain above industry benchmarks.</li><li><strong>CTR &amp; Engagement:</strong> High rates indicate strong ad relevance and creative resonance.</li><li><strong>CPC &amp; CPEv:</strong> Success is defined by a downward trend in these costs while maintaining traffic quality.</li></ul><h3>What are different types and groups of keywords?</h3><p>In Paid Search, keywords are categorized based on user intent. Choosing the right mix determines how effectively you reach your audience at different stages of their journey.</p><ul><li><strong>Branded Keywords:</strong> These include the specific brand name of a company or product. They target users already familiar with your brand, typically resulting in the highest conversion rates. <em>Examples:</em> Camzyos, Opdivo, Zeposia.</li><li><strong>Unbranded (Generic) Keywords:</strong> These focus on general terms or medical conditions related to your industry. They aim to reach users in the early discovery or research stages of their journey. <em>Examples:</em> Mavacamten (Generic name), Lung Symptoms, oHCM, HCM Cardiac.</li><li><strong>Competitive Keywords:</strong> These target the brand names of competitors or similar products. They are used strategically to capture the interest of users searching for alternatives or looking for product comparisons. <em>Examples:</em> Keytruda, Otezla, Imfinzi.</li></ul><blockquote><strong>The Strategy Gap:</strong> Branded keywords usually have the lowest <strong>CPC</strong> because your “Relevance” is naturally high. Competitive keywords are often the most expensive because search engines charge a premium when you bid on a rival’s name.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NLRcOu2GOWo87khMbLtsDg.png" /><figcaption>Image by <a href="https://medium.com/u/7fe89ccebe8a">Pranshu Jain</a></figcaption></figure><p>Organizing keywords into thematic clusters allows for better ad copy alignment and higher Quality Scores. In healthcare marketing, these groups are typically segmented by audience (DTC vs. HCP) and intent.</p><h4>Brand-Led Groups</h4><ul><li><strong>Branded:</strong> Keywords containing the specific brand name. These target both patients (DTC) and providers (HCP) looking for official information. <em>Examples:</em> Camzyos, Zeposia, Opdivo Lung.</li><li><strong>Generic (Molecule Name):</strong> Keywords focusing on the brand’s clinical/generic name. These are essential for HCP-focused campaigns. <em>Examples:</em> Mavacamten additional info, Nivolumab clinical trials.</li></ul><h4>Unbranded Groups (The Patient &amp; Provider Journey)</h4><ul><li><strong>Awareness &amp; Education (Top of Funnel — DTC):</strong> Broad terms used to educate the public about a specific condition or cause. <em>Examples:</em> HCM additional information, HCM awareness.</li><li><strong>General &amp; Condition (Top of Funnel — DTC):</strong> Specific information regarding a health issue or illness. <em>Examples:</em> Lung conditions, CML Leukemia.</li><li><strong>Signs &amp; Symptoms (Top of Funnel — DTC):</strong> Observable indications that lead a user to begin their search. <em>Examples:</em> Lung cancer symptoms, oHCM symptoms.</li><li><strong>Diagnosis (Mid-Funnel — DTC &amp; HCP):</strong> Keywords related to medical examinations, testing, and clinical evaluation. <em>Examples:</em> Lung cancer diagnosis, HCM diagnosis.</li><li><strong>Research (Bottom of Funnel — HCP):</strong> Highly technical terms aimed at medical professionals seeking clinical insights or specific data. <em>Examples:</em> HOCM LVOT obstruction, HOCM treatment options.</li><li><strong>Treatment (Bottom of Funnel — HCP/DTC):</strong> Keywords focusing on medical or therapeutic interventions to manage or cure a condition. <em>Examples:</em> HCM approved treatment, HCM daily medication.</li></ul><blockquote><strong>Why this matters:</strong> Segmenting by these groups allows you to serve a <strong>Diagnosis-themed ad</strong> to someone searching for “HCM diagnosis” rather than a generic brand ad. This hyper-relevance lowers your CPC and significantly improves the user experience.</blockquote><p>Now that we’ve mapped out the foundational metrics and keyword groups, it’s time to look at the levers that drive actual performance. Next, I’ll be diving into the science of spend elasticity, the critical role of site quality, and my personal framework for turning raw data into high-impact recommendations. You won’t want to miss the deep dive into what is currently working best for leading brands.</p><p>My profiles : <a href="https://www.linkedin.com/in/pranshu-jain-7689041a5/">LinkedIn</a> | <a href="https://github.com/pranshu2105">GitHub</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a8afe73953b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/illuminations-mirror/beyond-the-click-the-comprehensive-guide-to-mastering-paid-search-2a8afe73953b">Beyond the Click: The Comprehensive Guide to Mastering Paid Search</a> was originally published in <a href="https://medium.com/illuminations-mirror">ILLUMINATION’S MIRROR</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Omnichannel Marketing 101: The Modern Guide to Reaching Customers Everywhere]]></title>
            <link>https://medium.com/illuminations-mirror/omnichannel-marketing-101-the-modern-guide-to-reaching-customers-everywhere-12f469527fa0?source=rss-7fe89ccebe8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/12f469527fa0</guid>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[digital-marketing]]></category>
            <category><![CDATA[content-marketing]]></category>
            <category><![CDATA[advertising]]></category>
            <category><![CDATA[branding]]></category>
            <dc:creator><![CDATA[Pranshu Jain]]></dc:creator>
            <pubDate>Wed, 11 Mar 2026 14:16:59 GMT</pubDate>
            <atom:updated>2026-03-23T09:42:52.536Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Hook: The “Frustrated Customer” Scenario</h3><p>Imagine this: A customer sees your ad on Instagram while on the bus. They like the product, so they save it. Later, at home, they open their laptop to buy it, but they can’t find the “saved” item in their cart. Frustrated, they message your Facebook page for help. The support agent has no idea who they are or what ad they saw.</p><p>That is a <strong>“broken” journey</strong> and in 2026, it’s where sales go to die.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PPUHj-eBoR-AoJSS" /><figcaption>Photo by <a href="https://unsplash.com/@storyfuel?utm_source=medium&amp;utm_medium=referral">Melanie Deziel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>The Reality Check</h3><p>We no longer live in a world where people “go shopping.” We live in a world where we are <em>always</em> shopping. Whether it’s via a voice assistant in the kitchen, a smartphone in a physical aisle, or a targeted ad in an email inbox, the boundaries between “online” and “offline” have officially evaporated.</p><p>If your marketing strategy treats these platforms like isolated silos, you aren’t just behind the curve, you’re invisible to your customers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JqjA7AadEdhvZm8a" /><figcaption>Photo by <a href="https://unsplash.com/@marvelous?utm_source=medium&amp;utm_medium=referral">Marvin Meyer</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>What is Omnichannel Marketing, Really?</h3><p>Enter <strong>Omnichannel Marketing</strong>. While “multi-channel” is about being in many places at once, omnichannel is about being everywhere as one single, cohesive brand. It is the art of creating a seamless, unified experience that follows the customer, remembers their preferences, and anticipates their next move.</p><p>In this modern guide, we’re stripping away the jargon. We will explore how to build a “digital front door” that never closes, how to use data to personalize the journey without being “creepy,” and why the most successful brands are the ones that make buying feel like a conversation, not a transaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Zd0qszN52pUx-cOo" /><figcaption>Photo by <a href="https://unsplash.com/@ademay?utm_source=medium&amp;utm_medium=referral">Adem AY</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>The Ecosystem: Where Your Customers Live</h3><p>Understanding omnichannel marketing starts with recognizing that platforms are not independent silos; they are interconnected touchpoints. To build a truly modern strategy, you must ensure your brand speaks with one voice across these essential channels:</p><h4>1. The Search Engines: Capturing Active Intent</h4><ul><li><strong>Paid Search (PPC):</strong> This is your brand’s “fast pass” to the top of the results page. By paying search engines like Google or Bing to display your ads for specific keywords, you ensure that when a customer is actively looking for a solution, your name is the first thing they see.</li><li><strong>SEO (Search Engine Optimization):</strong> If Paid Search is a sprint, SEO is the marathon. It is the practice of optimizing your digital content so search engines recognize you as a high-authority, organic answer to a user’s question. Strong SEO ensures you own the conversation long after the ad budget runs out.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M9Ph7033YzZoTYf7" /><figcaption>Photo by <a href="https://unsplash.com/@shutter_speed_?utm_source=medium&amp;utm_medium=referral">Shutter Speed</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>2. The Visual Layer: Staying Top-of-Mind</h4><ul><li><strong>Display Advertising:</strong> These are the visual anchors of your brand. By promoting products through banners, images, or videos on various websites and apps, display ads act as “digital billboards” that keep your brand visible while users go about their daily browsing.</li><li><strong>Social Advertising:</strong> This is where data meets creativity. By leveraging paid advertisements on social media platforms, you can reach a highly targeted audience. This isn’t just about “likes”; it’s about driving engagement and conversions directly within the apps where your customers spend their time.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*A_d5tg92hptAnb_h" /><figcaption>Photo by <a href="https://unsplash.com/@dmaliepaard?utm_source=medium&amp;utm_medium=referral">Dennis Maliepaard</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>3. Mass Awareness &amp; Authority</h4><p><strong>Television (TV):</strong> Often seen as the ultimate “prestige” channel, TV remains the powerhouse for mass-market awareness. Whether through traditional broadcast or modern Connected TV (CTV), it allows you to tell a high-impact visual story that builds the emotional trust necessary for a customer to start their journey with you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vf1CUbUleSgPw15T" /><figcaption>Photo by <a href="https://unsplash.com/@nicolasjleclercq?utm_source=medium&amp;utm_medium=referral">Nicolas J Leclercq</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>4. The Direct Connection: Personalized Communication</h4><p><strong>Email Marketing:</strong> This is your most direct line to the customer, a way to nurture relationships with content tailored to their specific needs.</p><ul><li><strong>Home Office Emails:</strong> These are strategic, high-level brand updates sent centrally from the company to maintain a consistent global voice and keep your entire audience informed.</li><li><strong>Rep-Triggered Emails:</strong> The ultimate “human touch” in a digital world. These are personalized messages sent directly by a sales or field representative to a specific lead, ensuring that your omnichannel strategy feels like a 1:1 relationship rather than a mass-market blast.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gSNMKa0vdTDxDxU6" /><figcaption>Photo by <a href="https://unsplash.com/@brett_jordan?utm_source=medium&amp;utm_medium=referral">Brett Jordan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Conclusion: Connecting the Dots</h3><p>The secret to “reaching customers everywhere” isn’t just about being on every list; it’s about making sure that when a customer moves from a TV ad to a Google search, and finally to a personalized email, they feel like they are talking to the same person.</p><p>When you stop managing channels and start managing <strong>experiences</strong>, you stop losing customers to the “broken journey” and start building a brand that lasts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12f469527fa0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/illuminations-mirror/omnichannel-marketing-101-the-modern-guide-to-reaching-customers-everywhere-12f469527fa0">Omnichannel Marketing 101: The Modern Guide to Reaching Customers Everywhere</a> was originally published in <a href="https://medium.com/illuminations-mirror">ILLUMINATION’S MIRROR</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to work with external files in Python Programming?]]></title>
            <link>https://python.plainenglish.io/how-to-work-with-external-files-in-python-programming-44208aa6c18e?source=rss-7fe89ccebe8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/44208aa6c18e</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Pranshu Jain]]></dc:creator>
            <pubDate>Mon, 30 Jan 2023 12:15:01 GMT</pubDate>
            <atom:updated>2023-01-30T12:15:01.074Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tzVlvhUmkLUKzgbU" /><figcaption>Photo by <a href="https://unsplash.com/@altumcode?utm_source=medium&amp;utm_medium=referral">AltumCode</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Before we can read the contents of the file, we must tell python which file we are going to work with &amp; what we will be doing with the file.</p><h3>Opening a File</h3><ul><li>This is done with the ‘open()’ function.</li><li>The ‘open()’ function returns a ‘file handle’ — a variable used to perform operations on the file.</li><li>Similar to ‘File → Open’ in word processor.</li></ul><h3>Using ‘open()’ function</h3><ul><li>Handle = open(filename, mode)</li></ul><blockquote>For example: text = open(‘book.txt’, ‘r’)</blockquote><ul><li>Returns a handle use to manipulate the file.</li><li>The filename is of string datatype.</li><li>The mode is optional &amp; should be either ‘r’ if we are planning to read the file or ‘w’ if we are going to write to the file.</li></ul><h3>The newline character</h3><ul><li>We use a special character called the ‘newline’ to indicate when a line ends.</li><li>We represent it with ‘\n’ in strings.</li><li>Newline is still considered as one character, not two. For example:</li></ul><pre>inp1 = &#39;Hello\nWorld!&#39;<br>print(inp1)<br># Output of above line:<br># Hello<br># World!<br>inp2 = &#39;Hello\nEarth!&#39;<br>print(inp2)<br># Output of above line:<br># Hello<br># Earth!<br>print(len(inp1))<br># Output of above line:<br># 4<br><br># len function shows us that &#39;\n&#39; is considered as one character.</pre><h3>File Handle as a Sequence</h3><ul><li>A file handle open for read can be treated as a sequence of strings, where each line in the file is a string in the sequence.</li><li>We can use the for statement to iterate through a sequence. For example:</li></ul><pre>afile = open(&#39;book.txt&#39;)<br>for page in book:<br>  print(page)</pre><blockquote>Note: A sequence is an ordered set.</blockquote><h3>Counting lines in a file</h3><ul><li>Open a file in read-only mode.</li><li>Use a for loop to read each line.</li><li>Count the lines &amp; print out the number of lines. For example:</li></ul><pre>book = open(&#39;lines.txt&#39;)<br>count = 0<br>for line in book:<br>  count = count+1<br>print(&#39;Line count: &#39;, count)<br>#Output will be total number of lines that exists in &#39;lines.txt&#39; file.</pre><h3>Reading the ‘Whole’ file</h3><p>We can read the whole file (newlines &amp; all) into a single string. For example:</p><pre>book = open(&#39;lines.txt&#39;)<br>inp = book.read()<br>print(len(inp))<br># Output will be total number of charcters present in &#39;lines.txt&#39; file.<br>print(inp[:20])<br># It will print first 20 characters of the file. </pre><h3>Searching through a file</h3><p>We can put an ‘if’ statement in our ‘for’ loop to only print lines that meet some criteria. For example:</p><pre>book = open(&#39;lines.txt&#39;)<br>for line in book:<br>  if line.startswith(&#39;From&#39;):<br>    print(line)</pre><ul><li>We can strip the white spaces from the right-hand side of the string using ‘rstrip()’ from the string library.</li><li>The new line is considered as ‘white space’ and is stripped. For example:</li></ul><pre>book = open(&#39;lines.txt&#39;)<br>for line in book:<br>  line = line.rstrip()<br># New blank lines got removed by the above line.<br>  if line.startswith(&#39;From: &#39;)<br>    print(line)</pre><pre>Output of the above code will be all lines which are starting from &#39;From: &#39;:<br><br>From: Rohit Yadav<br>From: Deepesh Sharma<br>...<br>...<br>...<br>...<br>From: Hitesh Tiwari</pre><h3>Skipping with ‘continue’</h3><p>We can conveniently skip a line by using the continue statement. For example:</p><pre>book = open(&#39;lines.txt&#39;)<br>for line in book:L<br>  line = line.rstrip()<br>  if not line.startswith(&#39;From: &#39;)<br>    continue<br>  print(line)</pre><h3>Using ‘in’ to select lines</h3><p>We can look for a string anywhere in a line as our selection criteria.</p><pre>book = open(&#39;lines.txt&#39;)<br>for line in book:<br>  line = line.rstrip()<br>  if not &#39;@abc.de.fg&#39; in line:<br>    continue<br>  print(line)<br>#This program will print those lines which contains &#39;@abc.ef.gh&#39; means special which we want in line.</pre><h3>Prompt for file name</h3><pre>book = input(&#39;Enter the file name: &#39;)<br>lines = open(book)<br>count = 0<br>for line in lines:<br>  if line.startswith(&#39;subject&#39;):<br>    count = count + 1<br>print(&#39;There were&#39;, count, &#39;subject lines in&#39;, book)</pre><pre>Output of the above code:<br>Enter the file name: lines.txt<br>There were 2000 subject lines in lines.txt&#39;<br><br>Output of the above code if you enter bad files names. For example:<br>Enter the file name: xyz abc<br>File cannot be opened: xyz abc<br># We can see that no format is specified in the file name.</pre><p>That’s it for this article &amp; if you guys like this article informative, then please do clap for me and follow me for more exciting and informative articles.</p><p>My profiles : <a href="https://www.linkedin.com/in/pranshu-jain-7689041a5/">LinkedIn</a> | <a href="https://github.com/pranshu2105">GitHub</a></p><p><em>More content at </em><a href="https://plainenglish.io/"><strong><em>PlainEnglish.io</em></strong></a><em>.</em></p><p><em>Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Follow us on </em><a href="https://twitter.com/inPlainEngHQ"><strong><em>Twitter</em></strong></a>, <a href="https://www.linkedin.com/company/inplainenglish/"><strong><em>LinkedIn</em></strong></a><strong><em>, </em></strong><a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><strong><em>YouTube</em></strong></a><strong><em>, and</em></strong><em> </em><a href="https://discord.com/invite/GtDtUAvyhW"><strong><em>Discord</em></strong></a><strong><em>.</em></strong></p><p><strong><em>Build awareness and adoption for your tech startup with </em></strong><a href="https://circuit.ooo/?utm=publication-post-cta"><strong><em>Circuit</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44208aa6c18e" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/how-to-work-with-external-files-in-python-programming-44208aa6c18e">How to work with external files in Python Programming?</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[Strings in Python (Part-2)]]></title>
            <link>https://python.plainenglish.io/strings-in-python-d376be7f3c69?source=rss-7fe89ccebe8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d376be7f3c69</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Pranshu Jain]]></dc:creator>
            <pubDate>Wed, 25 Jan 2023 08:16:29 GMT</pubDate>
            <atom:updated>2023-01-25T08:19:19.649Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PHRWKUuTOkC955XK" /><figcaption>Photo by <a href="https://unsplash.com/@claybanks?utm_source=medium&amp;utm_medium=referral">Clay Banks</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>So, let’s continue our Python programming journey from where we left that is ‘Strings’. So, we will see more functioning of strings in Python programming. Let’s start with slicing strings.</p><h3>Slicing Strings</h3><ul><li>We can also look at any continuous section of a string using a colon operator.</li><li>The second number is one beyond the end of the slice — “Up to but not including”.</li><li>If the second number is beyond the end of the string, it stops at the end.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*USzGMH3TmKqrUWptd3a8RQ.png" /></figure><ul><li>If we leave off the first number or the last number of the slice, it is assumed to be the beginning or end of the string, respectively. Following are some examples on slicing of strings:</li></ul><pre>s = &#39;HELLO PYTHON&#39;<br>print(s[0:4])        # Output: HELL<br>print(s[6:7])        # Output: P<br>print(s[6:20])       # Output: PYTHON<br>print(s[:2])         # Output: HE<br>print(s[8:])         # Output: THON<br>print(s[:])          # Output: HELLO PYTHON</pre><h3>String Concatenation</h3><p>When the ‘+’ operator is applied to strings, it means ‘concatenation’. For example:</p><pre>a = &#39;Hello&#39;<br>b = a + &#39;There&#39;<br>print(b)           # Output: HelloThere<br>c = a + &#39; &#39; + b<br>print(c)           # Output: Hello There</pre><h3>Using ‘in’ as a logical operator</h3><ul><li>The &#39;in&#39; keyword can also be used to check whether a string is in another string or not.</li><li>The ‘in’ expression is a logical expression that returns ‘True’ or ‘False’ &amp; can be used in an if statement. For example:</li></ul><pre>fruit = &#39;Banana&#39;<br>&#39;n&#39; in fruit<br>&#39;m&#39; in fruit<br>&#39;nan&#39; in fruit<br>if &#39;a&#39; in fruit:<br>  print(&#39;Found it!&#39;)</pre><pre>Output of above code will be:<br><br>True<br>False<br>True<br>Found it!</pre><h3>String Library</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eLwA8w2ZvYKavbXZ" /><figcaption>Photo by <a href="https://unsplash.com/@itfeelslikefilm?utm_source=medium&amp;utm_medium=referral">🇸🇮 Janko Ferlič</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><ul><li>Python has a number of string functions which are in the string library.</li><li>These functions are already built into every string—we invoke them by appending the function to the string variable.</li><li>These functions do not modify the original string, instead they return a new string that has been altered. For example:</li></ul><pre>greet = &#39;Hello Bob&#39;<br>down = greet.lower()<br>print(down)                     # Output: hello bob<br>print(greet)                    # Output: Hello Bob<br>print(&#39;Hi There&#39;.lower())       # Output: hi there</pre><h3>Searching a String</h3><ul><li>We use ‘find()’ function to search for a substring within another string.</li><li>The ‘find()’ function finds the first occurrence of the substring.</li><li>If the substring is not found, ‘find()’ returns: -1. For example:</li></ul><pre>fruit = &#39;banana&#39;<br>pos = fruit.find(&#39;na&#39;)<br>print(pos)                # Output: 2<br>aa = fruit.find(&#39;z&#39;)<br>print(aa)                 #Output: -1</pre><blockquote>Remember that string position starts at zero.</blockquote><h3>Making everything ‘Upper Case’</h3><ul><li>You can make a copy of a string in lower case or upper case.</li><li>Often when we are searching for a string using find() we first convert the string to lower case, so we can search a string regardless of case. For example:</li></ul><pre>greet = &#39;Hello Bob&#39;<br>big = greet.upper()<br>print(big)                   # Output: HELLO BOB</pre><h3>Search &amp; Replace</h3><ul><li>The ‘replace()’ function is like a “search and replace” operation in a word processor.</li><li>It replaces all occurrences of the search string with the replacement string. For example:</li></ul><pre>greet = &#39;Hello Bob&#39;<br>nstr = gret.replace(&#39;Bob&#39;, &#39;Jane&#39;)<br>print(nstr)                         # Output: Hello Jane<br>nstr = greet.replace(&#39;o&#39;, &#39;x&#39;)<br>print(nstr)                         # Output: Hellx Bxb</pre><h3>Stripping Whitespace</h3><ul><li>Sometimes we want to take a string &amp; remove whitespace at the beginning and/or end.</li><li>The ‘lstrip()’ &amp; ‘rstrip()’ functions remove whitespace at the left or right.</li><li>The ‘strip()’ function removes both beginning &amp; ending whitespace. For example:</li></ul><pre>greet = &#39;     Hello Bob     &#39;<br>print(greet.lstrip())          # Output: &#39;Hello Bob     &#39;<br>print(greet.rstrip())          # Output: &#39;     Hello Bob&#39;<br>print(greet.strip())           # Output: &#39;Hello Bob&#39;</pre><h3>Prefixes</h3><p>It is a type of boolean expression which gives results about starting letter.</p><pre>line = &#39;Please have a nice day&#39;<br>line.startswith(&#39;Please&#39;)         # Output: True<br>line.startswith(&#39;p&#39;)              # Output: False</pre><h3>Parsing &amp; Extracting</h3><p>Analyzing strings into a logical syntactic component is known ‘Parsing’ and extracting a part of string is known as ‘Extraction’. For example:</p><pre>data = &#39;Hello Issac.newton@abc.ef.gh Thu Feb 21:14:35 2022&#39;<br>atpos1 = data.find(&#39;@&#39;)<br>print(atpos1)                     # This command will print the position of &#39;@&#39;.<br>atpos2 = data.find(&#39; &#39;, atpos1)<br>print(atpos2)                     # This command will print the postion of next space which arrives after &#39;@&#39;.<br>text = data[atpos1+1:atpos2)<br>print(text)                       # This command will print the text which exists between two positions which are &#39;atpos1&#39; and &#39;atpos2&#39;</pre><pre>Output of above code will be:<br><br>18<br>27<br>abc.ef.gh</pre><p>This will be the end of ‘Strings in Python’. Please do clap and follow me so that you get all the updates when I post my next article on Medium. See you soon and Good Luck to all of you!!</p><p>My profiles : <a href="https://www.linkedin.com/in/pranshu-jain-7689041a5/">LinkedIn</a> | <a href="https://github.com/pranshu2105">GitHub</a></p><p><em>More content at </em><a href="https://plainenglish.io/"><strong><em>PlainEnglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Follow us on </em><a href="https://twitter.com/inPlainEngHQ"><strong><em>Twitter</em></strong></a>, <a href="https://www.linkedin.com/company/inplainenglish/"><strong><em>LinkedIn</em></strong></a><em>, </em><a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><strong><em>YouTube</em></strong></a><em>, and </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>Discord</em></strong></a><strong><em>.</em></strong></p><p><strong><em>Interested in scaling your software startup</em></strong><em>? Check out </em><a href="https://circuit.ooo/?utm=publication-post-cta"><strong><em>Circuit</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d376be7f3c69" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/strings-in-python-d376be7f3c69">Strings in Python (Part-2)</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[Strings in Python (Part-1)]]></title>
            <link>https://python.plainenglish.io/strings-in-python-d68326aa870d?source=rss-7fe89ccebe8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d68326aa870d</guid>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Pranshu Jain]]></dc:creator>
            <pubDate>Fri, 20 Jan 2023 05:16:31 GMT</pubDate>
            <atom:updated>2023-01-20T05:25:38.560Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ItzozoD-Wz2Fu9Gu" /><figcaption>Photo by <a href="https://unsplash.com/es/@oneor0?utm_source=medium&amp;utm_medium=referral">Dmitry Chernyshov</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>String data type</h3><ul><li>A string is a sequence of characters.</li><li>A string literal uses quotes. For example: ‘Hello’ or “Hello”.</li><li>For strings, ‘+’ means concatenate, which merges two different strings.</li><li>When a string contains numbers, it is still a string.</li><li>We can convert numbers in a string into a number using int().</li></ul><h3>Reading &amp; Converting</h3><ul><li>We prefer to read data in using strings and then parse &amp; convert the data as we need.</li><li>This gives us more control over error situations &amp;/or bad user input.</li><li>Input numbers must be converted from strings.</li></ul><h3>Looking inside strings</h3><ul><li>We can get any single character in a string using an index specified in square brackets.</li><li>The index value must be an integer &amp; starts at zero.</li><li>The index value can be an expression that is computed. For example:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KCtuneauRkIongArzcpp_A.png" /></figure><pre>fruit = &#39;BANANA&#39;<br>letter =  fruit[1]<br>print(letter)       # output will be: A<br><br>x = 3<br>w = fruit[x-1]<br>print(w)            # output will be: N</pre><h3>A character too far</h3><ul><li>You will get a python error if you attempt to index beyond the end of a string.</li><li>So be careful when constructing index values &amp; slices. If you try to run the following code in the python compiler, then you will get a trace back error.</li></ul><pre>inp = &#39;abc&#39;<br>print(inp[5])    # Output - traceback(error)</pre><h3>Length of a string</h3><p>The built-in function ‘len’ gives us the length of a string.</p><pre>fruit = &#39;BANANA&#39;<br>print(len(fruit))    # Output: 6</pre><blockquote>A function is some stored code that we use. A function takes some input &amp; produces an output.</blockquote><h3>Looping through Strings</h3><ul><li>Using a ‘while’ statement &amp; an iteration variable and the ‘len’ function, we can construct a loop to look at each of the letters in a string individually. For example:</li></ul><pre>fruit = &#39;BANANA&#39;<br>index = 0<br>while index &lt; len(fruit):<br>  letter = fruit[index]<br>  print(index, letter)<br>  index = index + 1</pre><pre>Output of the above code:<br><br>0 B<br>1 A<br>2 N<br>3 A<br>4 N<br>5 A</pre><ul><li>A definite loop using a for statement is much more elegant.</li><li>The iteration variable is completely taken care of by the ‘for’ loop. For example:</li></ul><pre>fruit = &#39;BANANA&#39;<br>for letter in fruit:           # Here, letter is an iteration variable.<br>  print(letter)</pre><pre>Output of the above code:<br><br>B<br>A<br>N<br>A<br>N<br>A</pre><h3>Looping &amp; Counting</h3><p>This is a simple loop that loops through each letter in a string &amp; counts the number of times the loop encounters the ‘A’ character. For example:</p><pre>word = &#39;BANANA&#39;<br>count = 0<br>for letter in word:<br>  if letter == &#39;A&#39;:<br>    count = Count + 1<br>print(count)                  # Output: 3</pre><h3>Looking deeper into ‘in’</h3><ul><li>The iteration variable ‘iterates’ through the sequence (ordered set).</li><li>The block (body) of code is executed once for each value in the sequence.</li><li>The iteration variable moves through all the values in the sequence. For example:</li></ul><pre>for letter in &#39;BANANA&#39;:          # Here, &#39;letter&#39; is an iteration variable and &#39;BANANA&#39; is a six character string.<br>  print(letter)</pre><pre>Output of the above code:<br><br>B<br>A<br>N<br>A<br>N<br>A</pre><p>That’s it for this article and will be continuing ‘Strings in Python’ in my next article as article get so long if I will try to indulge those topics also in this article. Please do clap and follow me so that you get all the updates when I post my next article on Medium. See you soon and Good Luck to all of you!!</p><p>My profiles : <a href="https://www.linkedin.com/in/pranshu-jain-7689041a5/">LinkedIn</a> | <a href="https://github.com/pranshu2105">GitHub</a></p><p><em>More content at </em><a href="https://plainenglish.io/"><strong><em>PlainEnglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Follow us on </em><a href="https://twitter.com/inPlainEngHQ"><strong><em>Twitter</em></strong></a>, <a href="https://www.linkedin.com/company/inplainenglish/"><strong><em>LinkedIn</em></strong></a><em>, </em><a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><strong><em>YouTube</em></strong></a><em>, and </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>Discord</em></strong></a><strong><em>.</em></strong></p><p><strong><em>Interested in scaling your software startup</em></strong><em>? Check out </em><a href="https://circuit.ooo/?utm=publication-post-cta"><strong><em>Circuit</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d68326aa870d" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/strings-in-python-d68326aa870d">Strings in Python (Part-1)</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[Python Basics (Part-6) Loops Continued…]]></title>
            <link>https://blog.devgenius.io/python-basics-part-6-loops-continued-e25e2369be35?source=rss-7fe89ccebe8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e25e2369be35</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Pranshu Jain]]></dc:creator>
            <pubDate>Mon, 16 Jan 2023 23:02:36 GMT</pubDate>
            <atom:updated>2023-01-16T23:02:36.832Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NJZFYUHJf1CSbG4B" /><figcaption>Photo by <a href="https://unsplash.com/@blakeconnally?utm_source=medium&amp;utm_medium=referral">Blake Connally</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This would be my last article on Python programming basics after this article, we will move one step forward and learn Python intermediate topics.</p><p>In this article, You will continue your learning towards topic ‘Loops’.</p><h3>Addition in a Loop</h3><p>To add up a value we encounter in a loop, we introduce a sum variable that starts at 0, and we add the value to the sum each time through the loop. For example:</p><pre>temp = 0<br>print(&#39;Before&#39;, temp)<br>for value in [9,41,12,3,724,15]:<br>  temp = temp + value<br>  print(temp, value)<br>print(&#39;After&#39;, temp)</pre><pre>Output of above code:<br><br>Before 0<br>9 9<br>50 41<br>62 12<br>65 3<br>139 74<br>154 15<br>After 154</pre><h3>Average in a Loop</h3><p>An average just combines the counting &amp; sum patterns and divides when the loop is done. For example:</p><pre>count = 0<br>add = 0<br>print(&#39;Before&#39; ,count, add)<br>for value in [9, 41, 12, 3, 74, 15]:<br>  count = count + 1<br>  add = add + value<br>  print(count, add, value)<br>print(&#39;After&#39;, count, add, add/count)   # add/count will give us average of all numbers</pre><pre>Output of above code:<br><br>Before 0 0<br>1 9 9<br>2 50 41<br>3 62 12<br>4 65 3<br>5 139 74<br>6 154 15<br>After 6 154 25</pre><h3>Filtering in a Loop</h3><p>We use an if statement in the loop to catch/filter the values we are looking for. For example:</p><pre># In this example we will filter out values which are greater than 20<br>for value in [9, 41, 12, 3, 74, 15]:<br>  if value&gt;20:<br>    print(&#39;Greater values: &#39;, value)</pre><pre>Output:<br><br>Greater values: 41<br>Greater values: 74</pre><h3>Search using a Boolean Variable</h3><p>If we just want to search &amp; know if a value was found, we use a variable that starts at False &amp; is set to True as soon as we find what we are looking for.</p><pre>found = False<br>print(&#39;Before&#39;, found)<br>for value in [9, 41, 12, 3, 74, 15]:<br>  print(found, value)<br>  if value == 3:<br>    found = True<br>    break<br>print(&#39;After&#39;, found)</pre><pre>Output of above code:<br><br>Before False<br>False 9<br>False 41<br>False 12<br>True 3<br>After True</pre><p>The purpose of this assignment is to determine whether a given number (Here, 3) appears in a series of numbers or not. Once found, the variable changes to true.</p><blockquote>Note: ‘None’ is a keyword which is used to represent ‘nothing’ or ‘no value’. For example:</blockquote><blockquote>x = None ← It means x variable contains no value.</blockquote><h3>Finding the smallest value</h3><p>For the first time through the loop, the smallest value is None, so we take the first value to be the smallest. Check out the following code for understanding the concept:</p><pre>smallest = None<br>for value in [9, 41, 12, 3, 74, 15]:<br>  if smallest is None:<br>    smallest = value<br>  elif value&lt;smallest:<br>    smallest = value<br>  print(smallest, value)<br>print(&#39;Smallest value is &#39;, smallest)</pre><pre>Output of the above code:<br><br>9 9<br>9 41<br>9 12<br>3 3<br>3 74<br>3 15<br>Smallest value is 3</pre><p>This is it for the Python Basics. Now, we will increase our level and move towards Python Intermediate level. Please do like and comment if like my article, and please support me by following me.</p><p>My profiles : <a href="https://www.linkedin.com/in/pranshu-jain-7689041a5/">LinkedIn</a> | <a href="https://github.com/pranshu2105">GitHub</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e25e2369be35" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/python-basics-part-6-loops-continued-e25e2369be35">Python Basics (Part-6) Loops Continued…</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[Python Basics (Part-5) — Loops]]></title>
            <link>https://blog.devgenius.io/python-basics-part-5-loops-40a32bb6e7ab?source=rss-7fe89ccebe8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/40a32bb6e7ab</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Pranshu Jain]]></dc:creator>
            <pubDate>Wed, 11 Jan 2023 17:31:45 GMT</pubDate>
            <atom:updated>2023-01-11T17:31:45.551Z</atom:updated>
            <content:encoded><![CDATA[<h3>Python Basics (Part-5) — Loops</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uDF_-HgX2Hi3OQUM" /><figcaption>Photo by <a href="https://unsplash.com/@joshuaryanphoto?utm_source=medium&amp;utm_medium=referral">Joshua Reddekopp</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Loops or we can say repeated steps have iteration variables that change each time through a loop, often these iteration variables go through a sequence of numbers. For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gpfLEvsINHKX7_Mvv8VaIQ.png" /><figcaption>Block Diagram and Code of ‘While’ loop</figcaption></figure><h3>Infinite Loop</h3><p>Infinite loop is a condition in a loop where the loop never ends. For example:</p><pre>n = 5<br>while n&gt;0:<br>  print(&#39;Happy&#39;)<br>  print(&#39;Holiday&#39;)<br>print(&#39;Hurray&#39;)</pre><p>Above while loop will never get end as n = 5 will be always greater than zero.</p><h3>Breaking out of a loop</h3><ul><li>The ‘break’ statement ends the current loop and jumps to the statement immediately following the loop.</li><li>It is like a loop test that can happen anywhere in the body of the loop.</li></ul><pre>while True:                   # while loop will be always true<br>  line = input(&#39;-&#39;)<br>  if line == &#39;Done&#39;:<br>    break<br>  print(line)<br>print(&#39;Done!&#39;)</pre><pre>Output of above code:<br><br>-Hello                 # input 1<br>Hello                  # output 1<br>-Hola                  # input 2<br>Hola                   # output 2<br>-Done                  # input 3<br>Done!                  # output 3 due to break statement</pre><h3>Finishing an iteration with ‘continue’ statement</h3><p>The continue statement ends the current iteration and jumps to the top of the loop &amp; starts the next iteration. For example:</p><pre>while True:<br>  line = input(&#39;- &#39;)<br>  if line[0] == &#39;@&#39;<br>    continue<br>  if line == &#39;done&#39;<br>    break<br>  print(line)<br>print(&#39;Done!&#39;)</pre><pre>Output of above code:<br><br>- hello                 # input 1<br>hello                   # output 1<br>- @hola                 # input 2 - No output because of &#39;break&#39; statement<br>- friends               # input 3<br>friends                 # output 3<br>- done                  # input 4<br>Done!                   # output 4</pre><h3>A simple definite loop</h3><ul><li>Definite loops (for loops) have explicit iteration variables that change each time through a loop.</li><li>These iteration variables move through the sequence or set.</li></ul><pre>for i in [5,4,3,2,1]:<br>  print(i)<br>print(&#39;Done!&#39;)</pre><pre>Output:<br><br>5<br>4<br>3<br>2<br>1<br>Done!</pre><h4>Definite loop with strings</h4><pre>friends = [&#39;Rohit&#39;, &#39;Virat&#39;, &#39;Hardik&#39;]<br>for friend in friends:<br>  print(&#39;Hello! &#39;, friend)<br>print(&#39;Done!&#39;)</pre><pre>Output:<br><br>Hello! Rohit<br>Hello! Virat<br>Hello! Hardik<br>Done!</pre><h3>Looking at ‘in’</h3><ul><li>The iteration variable ‘iterates’ through the sequence (ordered set).</li><li>The block (body) of code is executed once for each value in the sequence.</li><li>The iteration variable moves through all the values in the sequence. For example:</li></ul><pre>for i in [5,4,3,2,1]:<br>  print(i)<br># Here, &#39;i&#39; is a iteration variable and [5,4,3,2,1] is five-element sequence </pre><h3>Making ‘smart’ loops</h3><p>The trick is ‘knowing’ something about the whole loop when you are stuck writing code that only sees one entry at a time.</p><ul><li>Set some variables to initial values.</li><li>for thing in data:</li><li>After getting inside ‘for’ loop, look for something or do something to each entry separately, updating a variable.</li><li>Look at the variables.</li></ul><h3>Example: Finding the largest value</h3><p>We now make a variable that contains the largest value we have seen to date. If the current number we are looking at is larger, it will be the new largest we have seen so far. You will understand more by seeing following code:</p><pre>largest_so_far = -1<br>print(&#39;Before&#39;, largest_so_far)<br>for the_num in [9, 41, 12, 3, 74, 15]:<br>  if the_num &gt; largest_so_far:<br>    largest_so_far = the_num<br>  print(largest_so_far, the_num)<br>print(&#39;After&#39;, largest_so_far)</pre><pre>Output of above code:<br><br>Before -1<br>9 9<br>41 41<br>41 12<br>41 3<br>74 74<br>74 15<br>After 74</pre><p>That’s it for this article on loops, I will be continuing this topic in my next article as it will get very long if I will add those thing in article. Please do like and comment if like my article, and please support me by following me for more exciting content like this.</p><p>My profiles : <a href="https://www.linkedin.com/in/pranshu-jain-7689041a5/">LinkedIn</a> | <a href="https://github.com/pranshu2105">GitHub</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40a32bb6e7ab" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/python-basics-part-5-loops-40a32bb6e7ab">Python Basics (Part-5) — Loops</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[Python Basics (Part-4) — Defining our own function]]></title>
            <link>https://blog.devgenius.io/python-basics-part-4-defining-our-own-function-6d4b3e0e90b4?source=rss-7fe89ccebe8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d4b3e0e90b4</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Pranshu Jain]]></dc:creator>
            <pubDate>Fri, 06 Jan 2023 14:57:55 GMT</pubDate>
            <atom:updated>2023-01-06T14:57:55.790Z</atom:updated>
            <content:encoded><![CDATA[<h3>Python Basics (Part-4) — Defining our own function</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GLnfMawMtRmdgKbd" /><figcaption>Photo by <a href="https://unsplash.com/@safarslife?utm_source=medium&amp;utm_medium=referral">Safar Safarov</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>What if we want to write our own lines of code which we can use any number of time without any difficulty. This can be achieved by using ‘def’ keyword. Let’s see how to use it:</p><ul><li>We call these reusable pieces of code ‘Functions’. It actually didn’t run the program, it just defines the functions which contains some lines of code.</li><li>We create a new function using the ‘def’ keyword followed by the optional parameters in the parentheses. We indent the body of the function.</li><li>Not only that, but we can run those code of lines, or we can say functions, any number of time by just writing the name of the function following with parameters (if any) inside the parentheses. It will get clearer to you after going through the following example:</li></ul><pre>def demo():                     # Defining the function named &#39;demo&#39;.<br>  print(&#39;Hello&#39;)<br>  print(&#39;friends&#39;)<br><br>demo()                          # Function gets called using name of the function.<br>print(&#39;dear&#39;)<br>demo()</pre><pre>Output of above code:<br><br>Hello<br>friends<br>dear<br>Hello<br>friends</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7m6c6I3nnlzGP5IVY2lB9w.png" /></figure><h3>Arguments</h3><ul><li>An argument is a value which we can pass into the function as its input when we call the function.</li><li>We use arguments, so we can direct the function to do different kinds of work when we call it at different time.</li><li>We put the arguments in parentheses after the name of the function. For example: big = max(‘Hello World’) where ‘Hello World’ is an argument passed in the max function.</li></ul><h3>Parameters</h3><p>A parameter is a variable which we use in the function definition. It is a handle that allows the code in the function to access the arguments for a particular function invocation. For example:</p><pre>def greet(lang) :                # Here &#39;lang&#39; is an argument<br>  if lang == &#39;es&#39;:<br>    print(&#39;Hola&#39;)<br>  elif lang == &#39;fr&#39;:<br>    print(&#39;Bonjour&#39;)<br>  else:<br>    print(&#39;Hello&#39;)</pre><pre>Output of above code:<br>&gt;&gt;&gt; greet(&#39;en&#39;)           - user input 1<br>Hello                     - Output 1<br>&gt;&gt;&gt; greet(&#39;es&#39;)           - user input 2<br>Hola                      - Output 2<br>&gt;&gt;&gt; greet(&#39;fr&#39;)           - user input 3<br>Bonjour                   - Output 3</pre><h3>Return Values</h3><p>Often a function will take its arguments, do some computation, and return a value to be used as the value of the function calling the calling expression. The ‘return’ keyword is used for such activity. For example:</p><pre>def greet():<br>  return &quot;Hello&quot;<br><br>print(greet(), &quot;Rohit&quot;)<br>print(greet(), &quot;Virat&quot;)</pre><pre>Output:<br><br>Hello Rohit<br>Hello Virat</pre><h3>Multiple Parameters/Arguments</h3><ul><li>We can define more than one parameter in the function definition.</li><li>Not only that, but we can simply add more arguments when we call the function.</li><li>Furthermore, we match the number &amp; order of argument and parameters.</li></ul><pre>def add_two(a,b):<br>  added = a+b<br>  return added<br><br>x = add_two(3,5)<br>print(x)</pre><pre>Output of above code:<br><br>8</pre><h3>Special Operators</h3><p>Python language offers some special types of operators like the <strong>identity</strong> operator and the <strong>membership</strong> operator.</p><h4>Identity operators</h4><ul><li>Python has an ‘is’ &amp; ‘is not’ operator that can be used in logical expressions, which implies “is the same as”.</li><li>It is similar to, but not stronger than ‘==’.</li><li>Meaning of ‘is’ operator is True if both the operands are identical.</li><li>Meaning of ‘is not’ operator is True if both the operands are not identical. For example:</li></ul><pre>a = 10<br>b = 10<br>c = &#39;Hello&#39;<br>d = &#39;Hello&#39;<br><br>print(a is b)<br>print(a is c)<br>print( b is not d)<br>print(c is d)</pre><pre>Output of above code:<br>True<br>False<br>True<br>True</pre><h4>Membership operators</h4><ul><li>In Python, ‘in’ and ‘not in’ are known as membership operators.</li><li>They are used to determining whether a value or variable exists in a sequence (string, list, tuple, set and dictionary).</li><li>In a dictionary, we can only test for the presence of the key and not for the value.</li><li>Meaning of ‘in’ operator will be True if value/variable founded in the sequence.</li><li>Meaning of ‘not in’ operator will be True if value/variable not founded in the sequence. For example:</li></ul><pre>inp = &#39;Hello World&#39;<br>dict1 = {1:&#39;a&#39;, 2:&#39;b&#39;}  # dict1 is a dictionary about which we will learn in further lessons.<br><br>print(&#39;H&#39; in inp)<br>print(&#39;hi&#39; in inp)<br>print(1 in dict1)<br>print(&#39;a&#39; in dict1)</pre><pre>Output of above code:<br>True<br>False<br>True<br>False</pre><p>That’s it for this article, hope you will find it useful. Please like and follow my page for more content like this on Python.</p><p>My profiles : <a href="https://www.linkedin.com/in/pranshu-jain-7689041a5/">LinkedIn</a> | <a href="https://github.com/pranshu2105">GitHub</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d4b3e0e90b4" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/python-basics-part-4-defining-our-own-function-6d4b3e0e90b4">Python Basics (Part-4) — Defining our own function</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[Python Basics (Part-3)]]></title>
            <link>https://blog.devgenius.io/python-basics-part-3-48f932b49ea0?source=rss-7fe89ccebe8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/48f932b49ea0</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Pranshu Jain]]></dc:creator>
            <pubDate>Tue, 03 Jan 2023 11:41:01 GMT</pubDate>
            <atom:updated>2023-01-03T18:08:30.860Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_-m2F3TUP-ynzjeN" /></figure><p>Let’s continue our journey of learning Python basics.</p><p>First, we will learn about how to take input from the user.</p><h3>User Input</h3><ul><li>We can instruct Python to pause &amp; read data from the user using the ‘input()’ function.</li><li>The ‘input()’ function returns a string. For example:</li></ul><pre>name = input(&#39;Who are you?&#39;)<br>print(&#39;Welcome&#39;, name)</pre><pre>Output of the above code will be:<br>Who are you?<br>pranshu              # User will input a name by typing.<br>Welcome pranshu</pre><h3>Comments</h3><ul><li>Anything after a # is ignored by Python language.</li></ul><blockquote>What is the purpose of comments?</blockquote><ul><li>It describes about what is going to happen in a sequence of code.</li><li>Document who wrote the code or other ancillary information.</li><li>Turn off a line code — perhaps temporarily.</li></ul><h3>Converting User Input</h3><ul><li>If we want to read a number from the user, we must convert it from a string to a number using a type conversion function, as I told in my previous article.</li><li>Later we will deal with bad input data.</li></ul><pre># For example: Convert elevator floors from britsh to US.<br>inp = input(&#39;Europe floor?&#39;)<br>usf = int(inp) +1<br>print(&#39;US floors&#39;, usf)</pre><pre>Output of above code:<br>Europe floor?  0 #Here 0 is input given by user.<br>US floors 1</pre><h3>Comparison Operators</h3><ul><li>Boolean expressions ask a question &amp; produce a ‘YES’ or ‘NO’ result, which we use to control program flow.</li><li>Boolean expressions using comparison operators evaluate to True/False or Yes/No.</li><li>Comparison Operators look at variables but do not change the variable.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oWBVHHzTzQ0N9hu8BeA3hw.png" /></figure><blockquote>Note: “=” is an assignment operator. Hence, it is only used for assignment.</blockquote><h3>Nested Decisions</h3><ul><li>If we use functions inside another function, then it is known as nested functions.</li><li>Here, if we use ‘if’ function inside another ‘if’ function, then it is known as nested decisions. For example:</li></ul><pre>x =42<br>if x&gt;1:<br>  print(&#39;More than one&#39;)<br>  if x&lt;100:                   # Nested if function<br>    print(&#39;Less than 100&#39;)<br>print(&#39;Done!&#39;)</pre><h3>Two Way Decisions</h3><ul><li>Sometimes, we want to do one thing if a logical expression is true &amp; something else if the expression is false.</li><li>It is like a fork in the road, we must choose one or the other path, but not both.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cAxRg_OQvkEBPnntBOrE4A.png" /></figure><h4>Two-way decisions with if-else functions</h4><pre>x = 4<br>if x&gt;2:<br>  print(&#39;Bigger&#39;)<br>else:<br>  print(&#39;Not bigger&#39;)<br>print(&#39;Done!&#39;)</pre><h3>Multiway Decisions</h3><p>If we want more than 2 options, then we use multiway decisions. You can use more than one elif function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sZQwwOQ1eb623RjijIFFqA.png" /></figure><h4>Multiway decisions with if-elif-else functions</h4><pre>x =20<br>if x&lt;2:<br>  print(&#39;Smaller&#39;)<br>elif x&lt;10:<br>  print(&#39;Medium&#39;)<br>else:<br>  print(&#39;Large&#39;)<br>print(&#39;Done!&#39;)</pre><h3>The Try &amp; Except Structure</h3><ul><li>you surround a dangerous section of code with try &amp; except.</li><li>The code in the try works, then the except is skipped.</li><li>If the code in the try fails, then it jumps to the except section. For example:</li></ul><pre>astr = &#39;Hello Bob&#39;<br>istr = int(astr)      # Program stops here<br>print(&#39;First&#39;, istr)<br>astr = &#39;123&#39;<br>istr = int(astr)<br>print(&#39;second&#39;, istr)</pre><p>The above code will raise an error at the second line of the code, as the string which we are trying to convert to an integer dos not contain a number.</p><ul><li>Correcting above example using try and except method:</li></ul><pre>astr = &#39;Hello Bob&#39;<br>try:<br>  istr = int(astr)<br>except:<br>  istr = -1<br>print(&#39;First&#39;, istr)<br># When the first coversion fails, it just drops into the except clause &amp; the program continues.<br><br>astr = &#39;123&#39;<br>try:<br>  istr = int(astr)<br>except:<br>  istr = -1<br>print(&#39;Second&#39;, istr)<br># When the second conversion succeeds, it just skips the except clause &amp; the program continues.</pre><pre>Output of the above code:<br><br>First -1<br>Second 123</pre><h4>Another example of try/except</h4><pre>rawstr = input(&#39;Enter a number:&#39;)<br>try:<br>  ival = int(rawstr)<br>except:<br>  ival = -1<br><br>if ival &gt; 0:<br>  print(&#39;Nice Work!&#39;)<br>else:<br>  print(&#39;Not a number!&#39;)</pre><pre>Output 1:<br><br>Enter a number: 42<br>Nice Work!<br><br>Output 2:<br><br>Enter a number: forty-two<br>Not a number!</pre><p>That’s it for this time. I will bring more topics in next article. Please like and follow my page for more exciting content..!!</p><p>My profiles : <a href="https://www.linkedin.com/in/pranshu-jain-7689041a5/">LinkedIn</a> | <a href="https://github.com/pranshu2105">GitHub</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48f932b49ea0" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/python-basics-part-3-48f932b49ea0">Python Basics (Part-3)</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[Python Basics (Part-2)]]></title>
            <link>https://python.plainenglish.io/python-basics-part-2-b21ec620fb7a?source=rss-7fe89ccebe8a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b21ec620fb7a</guid>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Pranshu Jain]]></dc:creator>
            <pubDate>Sun, 01 Jan 2023 10:56:26 GMT</pubDate>
            <atom:updated>2023-01-17T10:29:37.624Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IBqH-nLDavXHQ4z9" /></figure><p>So this is the second part of our Python Journey, If you guys want to see my previous posts you can go through them by using this <a href="https://medium.com/@pranshu2105j">link</a>.</p><p>So let’s continue towards the second part, in which we will start from understanding assignment statements.</p><h3>Assignment Statements</h3><p>We assign a value to a variable using the assignment statement(=). An assignment statement consists of an expression on the right-hand side &amp; a variable to store the result. For example:</p><ul><li>x = 2 ← Assignment Statement</li><li>x = x+2 ← Assignment with expression</li><li>print(x) ← Print statement</li></ul><blockquote>Note: Here x is a variable, 2 is a constant, = is a operator, and print() is a function.</blockquote><h3>Numeric Expressions</h3><ul><li>Because of the lack of mathematical symbols on computer keyboards — We use “computer speak” to express the classic math operations.</li><li>Asterisk is multiplication.</li><li>Exponentiation (raise to a power) looks different from math.</li></ul><h4>Operator → Operation</h4><ul><li>+ → Addition: adds two operands</li><li>— → Subtraction: subtracts two operands</li><li>* → Multiplication: multiplies two operands</li><li>/ → Division: Divides the first operand by the second, but the result will be of float data type.</li><li>** →Power: Returns first raised to power second</li><li>% → Modulus: returns the remainder when the first operand is divided by the second</li><li>// → Division divides the first operand by the second, but the result will be of float type, which means it will give the number before the decimal point and remove the numbers after the decimal point.</li></ul><h3>Order of Evaluation</h3><ul><li>When we use string operator together, Python must know which one to-do first. This is called “Operator Precedence.”</li></ul><blockquote>Which operator takes precedence over the others?</blockquote><p>This could be answered by the following Operator Precedence rules:</p><ol><li>Parentheses are always respected.</li><li>Exponentiation (raise to a power).</li><li>Multiplication, division, and remainder.</li><li>Addition &amp; Subtraction.</li><li>Left to Right.</li></ol><h3>What does the word ‘Type’ mean?</h3><ul><li>In Python variables, literals &amp; constants have a “type”.</li><li>Python knows the difference between an integer number and a string.</li><li>For example, “+” means “addition” if something is a number &amp; “concatenate” if something is a string.</li></ul><h4>Type Matters!</h4><ul><li>Python knows what “type” of everything which we are writing in Python.</li><li>Some operations are prohibited, as you cannot add “1” to a string.</li><li>The “type()” function can tell us what type something is in Python.</li><li>For more interaction with type function, you can go through this <a href="https://replit.com/@PRANSHUJAIN3/type#main.py"><strong>link</strong></a> and run the following code for output.</li></ul><pre>demo = &#39;hello&#39; + &#39;world!&#39;<br>print(type(demo))</pre><h4>Two types of numbers</h4><ul><li>Integers are whole numbers. For example: -14, -2, 0, 15, 1233,etc.</li><li>Floating point numbers have decimal part. For example: -2.5, 0.0, 3.14, 78.6, etc.</li></ul><h4>Type conversions</h4><ul><li>When you put an integer &amp; floating point in an expression, the integer is implicitly converted to a float type.</li><li>You can control this by using built-in functions like “int()” &amp; “float()”.</li><li>For demonstration of type conversion, follow this <a href="https://replit.com/@PRANSHUJAIN3/BubblyFickleUsernames#main.py"><strong>link</strong></a><strong> </strong>to run the following code.</li></ul><pre>print(float(99)+100)<br>i=42<br>print(type(i))<br>f = float(i)<br>print(f)<br>print(type(f))</pre><ul><li>You can also use float() and int() functions to convert between strings and integers.</li><li>You will get an error if the string does not contain numeric characters.</li><li>Go through this <a href="https://replit.com/@PRANSHUJAIN3/string-type-conversion#main.py"><strong>link</strong></a> for demonstrating following code yourself.</li></ul><pre># If you will uncomment the commented commands, then you will get error.<br>sval = &#39;123&#39;<br>print(type(sval))<br># print(sval+ 1)<br><br>ival = int(sval)<br>print(type(ival))<br>print(ival + 1)<br>nsv = &#39;hello guys!&#39;<br># niv = int(nsv)</pre><p>Please follow and like my post and stay tuned for exciting new posts!!</p><p>My profiles : <a href="https://www.linkedin.com/in/pranshu-jain-7689041a5/">LinkedIn</a> | <a href="https://github.com/pranshu2105">GitHub</a></p><p><em>More content at </em><a href="https://plainenglish.io/"><strong><em>PlainEnglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Follow us on </em><a href="https://twitter.com/inPlainEngHQ"><strong><em>Twitter</em></strong></a>, <a href="https://www.linkedin.com/company/inplainenglish/"><strong><em>LinkedIn</em></strong></a><em>, </em><a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><strong><em>YouTube</em></strong></a><em>, and </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>Discord</em></strong></a><strong><em>.</em></strong></p><p><strong><em>Interested in scaling your software startup</em></strong><em>? Check out </em><a href="https://circuit.ooo/?utm=publication-post-cta"><strong><em>Circuit</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b21ec620fb7a" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/python-basics-part-2-b21ec620fb7a">Python Basics (Part-2)</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>