<?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"><channel><title><![CDATA[Data Science]]></title><description><![CDATA[Here , I am documenting my journey of Learning Data Science.]]></description><link>https://mandeep-data-science.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 19 Sep 2026 10:36:24 GMT</lastBuildDate><atom:link href="https://mandeep-data-science.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Control Transfer Statements & Functions in Python — Told Through the Story of a Working Guy Named ' Golu ']]></title><description><![CDATA[Meet Golu. He’s 24, recently joined as a developer at “CodeWala Pvt Ltd.” He’s figuring out life, his job, and Python — especially control statements and functions. Let’s follow his journey. You’ll laugh, relate, and learn every Python twist along th...]]></description><link>https://mandeep-data-science.hashnode.dev/control-transfer-statements-and-functions-in-python-told-through-the-story-of-a-working-guy-named-golu</link><guid isPermaLink="true">https://mandeep-data-science.hashnode.dev/control-transfer-statements-and-functions-in-python-told-through-the-story-of-a-working-guy-named-golu</guid><category><![CDATA[ChaiCode]]></category><dc:creator><![CDATA[MANDEEP SHARMA]]></dc:creator><pubDate>Sat, 10 May 2025 04:38:33 GMT</pubDate><content:encoded><![CDATA[<p>Meet Golu. He’s 24, recently joined as a developer at “CodeWala Pvt Ltd.” He’s figuring out life, his job, and Python — especially control statements and functions. Let’s follow his journey. You’ll laugh, relate, and learn every Python twist along the way.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1746849540559/48746c4f-1f52-47cc-974f-56417cf02469.png" alt class="image--center mx-auto" /></p>
<h2 id="heading-day-1-the-infinite-loop-of-morning">Day 1: The Infinite Loop of Morning</h2>
<p>Golu’s alarm rang. He snoozed. Then again. And again.</p>
<p>He was caught in a <code>while</code> loop.</p>
<pre><code class="lang-python"><span class="hljs-keyword">while</span> <span class="hljs-keyword">not</span> awake:
    snooze_alarm()
</code></pre>
<p>His mom screamed, <em>“Golu! Office nahi jaana kya?”</em><br />That's when <code>break</code> happened — he got up.</p>
<h2 id="heading-break-the-escape-from-the-loop"><code>break</code> — The Escape from the Loop</h2>
<p>It’s same like you’re watching YouTube reels. You say, “Just one more.” Then mom walks in. <em>BREAK!</em></p>
<pre><code class="lang-python">videos = [<span class="hljs-string">"cat"</span>, <span class="hljs-string">"dog"</span>, <span class="hljs-string">"meme"</span>, <span class="hljs-string">"study"</span>, <span class="hljs-string">"more memes"</span>]
<span class="hljs-keyword">for</span> vid <span class="hljs-keyword">in</span> videos:
    <span class="hljs-keyword">if</span> vid == <span class="hljs-string">"study"</span>:
        print(<span class="hljs-string">"Mom alert! Closing tabs."</span>)
        <span class="hljs-keyword">break</span>
    print(<span class="hljs-string">"Watching:"</span>, vid)
</code></pre>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1746849720774/d4fdf575-7db5-4b19-a6d7-6ccfadb5829d.jpeg" alt class="image--center mx-auto" /></p>
<h2 id="heading-continue-the-skip-this-part-button"><code>continue</code> — The "Skip This Part" Button</h2>
<p>At office, Golu checks his emails. Some are spam, some are boring, and one is about <strong>salary</strong>.</p>
<p>He skips the boring ones:</p>
<pre><code class="lang-python">emails = [<span class="hljs-string">"HR Update"</span>, <span class="hljs-string">"Team Lunch"</span>, <span class="hljs-string">"Spam Offer"</span>, <span class="hljs-string">"Salary Credit"</span>]
<span class="hljs-keyword">for</span> email <span class="hljs-keyword">in</span> emails:
    <span class="hljs-keyword">if</span> email == <span class="hljs-string">"Spam Offer"</span>:
        <span class="hljs-keyword">continue</span>
    print(<span class="hljs-string">"Reading:"</span>, email)
</code></pre>
<p>It same like we scrolling through Instagram — skip the cringe reels, stop at the juicy ones.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1746850031044/1497e037-255d-486c-ad54-35d4aae96e46.jpeg" alt class="image--center mx-auto" /></p>
<h2 id="heading-pass-placeholder-for-life-decisions"><code>pass</code> — Placeholder for Life Decisions</h2>
<p>At lunch, Golu tells his colleague, “I’ll start gym from Monday.”<br />He hasn’t decided anything, just made space in his brain for it.<br />That’s <code>pass</code>.</p>
<pre><code class="lang-python"><span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">new_year_resolution</span>():</span>
    <span class="hljs-keyword">pass</span>  <span class="hljs-comment"># Will figure this out after 15th Jan</span>
</code></pre>
<p>Like buying a self-help book you never read. You <em>intend</em> to do something, just not now.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1746850238225/fc728ecc-a270-41ba-b50d-4380c7adf44c.jpeg" alt class="image--center mx-auto" /></p>
<h2 id="heading-ia"> </h2>
<p>DAY - 2 : - The Boss Gives Him a Task — Time to Write a Function.</p>
<p>Golu’s boss says, “Every time we onboard a new employee, send them a welcome message. I don’t want to copy-paste it 20 times!”</p>
<p>He creates a function :</p>
<pre><code class="lang-python"><span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">welcome_employee</span>(<span class="hljs-params">name</span>):</span>
    print(<span class="hljs-string">f"Welcome to CodeWala Pvt Ltd, <span class="hljs-subst">{name}</span>!"</span>)

welcome_employee(<span class="hljs-string">"Anjali"</span>)
welcome_employee(<span class="hljs-string">"Deep"</span>)
</code></pre>
<p>Like saving someone’s number as “Pizza Guy” — now you don’t type it every time. You just <strong>call the name</strong>.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1746850502457/46526cd5-3566-48aa-9517-7d5191bcf581.jpeg" alt class="image--center mx-auto" /></p>
<h3 id="heading-this-is-the-reason-golu-used-function">This is the reason golu used function.</h3>
<h3 id="heading-return-the-real-mvp"><code>return</code> — The Real MVP</h3>
<p>Now the boss asks, “Get me the final salary after tax deductions.”</p>
<p>Golu writes:</p>
<pre><code class="lang-python"><span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">calculate_salary</span>(<span class="hljs-params">base</span>):</span>
    <span class="hljs-keyword">return</span> base - (<span class="hljs-number">0.1</span> * base)

final = calculate_salary(<span class="hljs-number">50000</span>)
print(<span class="hljs-string">"Final Salary:"</span>, final)
</code></pre>
<p>Like ordering food online. You get the total, with taxes included — that’s <code>return</code>.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1746850865189/7df40b3d-d555-4a0e-ac34-47be2aed4689.jpeg" alt class="image--center mx-auto" /></p>
<h2 id="heading-combine-it-all-real-life-real-code">Combine It All: Real Life + Real Code</h2>
<p>Golu is processing daily task for a day.</p>
<pre><code class="lang-python"><span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">process_day</span>(<span class="hljs-params">tasks</span>):</span>
    <span class="hljs-keyword">for</span> task <span class="hljs-keyword">in</span> tasks:
        <span class="hljs-keyword">if</span> task == <span class="hljs-string">"toxic meeting"</span>:
            print(<span class="hljs-string">"Skipping this one."</span>)
            <span class="hljs-keyword">continue</span>
        <span class="hljs-keyword">if</span> task == <span class="hljs-string">"resign"</span>:
            print(<span class="hljs-string">"I'm out."</span>)
            <span class="hljs-keyword">break</span>
        <span class="hljs-keyword">if</span> task == <span class="hljs-string">"future plan"</span>:
            <span class="hljs-keyword">pass</span>  <span class="hljs-comment"># We'll think later</span>
        <span class="hljs-keyword">else</span>:
            print(<span class="hljs-string">"Doing task:"</span>, task)
    <span class="hljs-keyword">return</span> <span class="hljs-string">"All done for today."</span>

print(process_day([<span class="hljs-string">"email"</span>, <span class="hljs-string">"toxic meeting"</span>, <span class="hljs-string">"code review"</span>, <span class="hljs-string">"resign"</span>, <span class="hljs-string">"future plan"</span>]))
</code></pre>
<pre><code class="lang-yaml"><span class="hljs-attr">Doing task:</span> <span class="hljs-string">email</span>  
<span class="hljs-string">Skipping</span> <span class="hljs-string">this</span> <span class="hljs-string">one.</span>  
<span class="hljs-attr">Doing task:</span> <span class="hljs-string">code</span> <span class="hljs-string">review</span>  
<span class="hljs-string">I'm</span> <span class="hljs-string">out.</span>
</code></pre>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1746851545710/8c068e71-7da9-4a0a-bd6a-b15e37f0ffba.png" alt class="image--center mx-auto" /></p>
<h2 id="heading-this-is-how-our-hard-working-golu-works-day-in-and-out-sad-but-he-have-to">This is how our hard working Golu works day in and out , Sad :( but he have to ..</h2>
<h2 id="heading-let-relax-him-and-say-him-bye">let relax him and say him bye.</h2>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1746851628395/ea394a14-6b08-4cd5-bb3a-c2749be9413f.png" alt class="image--center mx-auto" /></p>
<h2 id="heading-now-give-me-permission-to-leave-kya-matlab-aap-whi-soch-rhe-thai-ki-iska-kab-khatam-hoga-ohh-so-bye">Now give me permission to leave (kya matlab aap whi soch rhe thai ki iska kab khatam hoga) ohh , so bye….</h2>
]]></content:encoded></item><item><title><![CDATA[Control Flow & Loops in Python: The Ultimate Drama of Decisions and Repeats]]></title><description><![CDATA[Python isn’t just a language. It’s a movie. You’ve got actors (your code), drama (if-else), suspense (elif), and never-ending loops (like relatives talking at weddings).
Act 1: The Decision Makers (Control Flow Statements).
1. if — The Suspicious Det...]]></description><link>https://mandeep-data-science.hashnode.dev/control-flow-and-loops-in-python-the-ultimate-drama-of-decisions-and-repeats</link><guid isPermaLink="true">https://mandeep-data-science.hashnode.dev/control-flow-and-loops-in-python-the-ultimate-drama-of-decisions-and-repeats</guid><category><![CDATA[ChaiCode]]></category><dc:creator><![CDATA[MANDEEP SHARMA]]></dc:creator><pubDate>Sat, 03 May 2025 01:57:55 GMT</pubDate><content:encoded><![CDATA[<p>Python isn’t just a language. It’s a <strong>movie</strong>. You’ve got actors (your code), drama (if-else), suspense (elif), and never-ending loops (like relatives talking at weddings).</p>
<h2 id="heading-act-1-the-decision-makers-control-flow-statements">Act 1: The Decision Makers (Control Flow Statements).</h2>
<h3 id="heading-1-if-the-suspicious-detective">1. <code>if</code> — The Suspicious Detective.</h3>
<p><code>if</code> is like a detective. He only acts <strong>if</strong> he sees the exact clue he's looking for. If not — he just walks away.</p>
<pre><code class="lang-python">crime_scene = <span class="hljs-string">"knife"</span>
<span class="hljs-keyword">if</span> crime_scene == <span class="hljs-string">"knife"</span>:
    print(<span class="hljs-string">"Call CSI team!"</span>)
</code></pre>
<p><strong>What’s happening</strong>:</p>
<ul>
<li><p>Python checks the <strong>condition</strong>.</p>
</li>
<li><p>If it’s <code>True</code>, it runs the block.</p>
</li>
<li><p>If not — <strong>do nothing</strong>. No drama. Just silence.</p>
</li>
</ul>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1746236020352/43987f4b-a107-49e4-a789-089a321c1e83.jpeg" alt class="image--center mx-auto" /></p>
<h3 id="heading-ia"> </h3>
<p>2. <code>if-else</code> — The Moody Teenager</p>
<h3 id="heading-if-i-get-pizza-im-happy-else-im-going-to-my-room-and-not-talking">“If I get pizza, I’m happy. Else, I’m going to my room and not talking.”</h3>
<pre><code class="lang-python">food = <span class="hljs-string">"burger"</span>
<span class="hljs-keyword">if</span> food == <span class="hljs-string">"pizza"</span>:
    print(<span class="hljs-string">"Yay! Let's eat!"</span>)
<span class="hljs-keyword">else</span>:
    print(<span class="hljs-string">"Ew. Not hungry."</span>)
</code></pre>
<p><strong>Behavior</strong>:</p>
<ul>
<li><p><strong>Always</strong> executes one of the two blocks.</p>
</li>
<li><p>Great for binary outcomes (yes/no, true/false, pizza/betrayal).</p>
</li>
</ul>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1746236201996/6d1e2e99-40ce-4837-b804-c0ff22ef157e.jpeg" alt class="image--center mx-auto" /></p>
<h3 id="heading-ia-1"> </h3>
<p><strong>3.</strong> <code>elif</code> — The Overthinking Friend.</p>
<p>We all have one friend who just give so many options that we get confuse or predict so many possibilities(bad one ) that we have to cancel the plan.</p>
<pre><code class="lang-python">mood = <span class="hljs-string">"Burger"</span>

<span class="hljs-keyword">if</span> mood == <span class="hljs-string">"Burger"</span>:
    print(<span class="hljs-string">"Let's go McD!"</span>)
<span class="hljs-keyword">elif</span> mood == <span class="hljs-string">"Pizza"</span>:
    print(<span class="hljs-string">"La Pino'z."</span>)
<span class="hljs-keyword">elif</span> mood == <span class="hljs-string">"bored"</span>:
    print(<span class="hljs-string">"Watch Netflix."</span>)
<span class="hljs-keyword">else</span>:
    print(<span class="hljs-string">"Sleep it off."</span>)
</code></pre>
<p><strong>How it works</strong>:</p>
<ul>
<li><p>Python goes top-down.</p>
</li>
<li><p>First match → executes → <strong>skips the rest</strong>.</p>
</li>
<li><p>If no match → hits the final <code>else</code> (if present).</p>
</li>
</ul>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1746236646901/98dab84c-a61c-42bf-80d8-a4a216f12834.png" alt class="image--center mx-auto" /></p>
<h2 id="heading-act-2-loops-when-you-want-python-to-do-the-same-thing-again-and-again">Act 2: Loops — When You Want Python to Do The Same Thing... Again... And Again...</h2>
<h3 id="heading-1-while-loop-the-kid-asking-are-we-there-yet">1. <code>while</code> Loop — The Kid Asking “Are We There Yet?”</h3>
<p>While loops are like kids on a road trip:<br />“Are we there yet? Are we there yet? Are we there yet?”<br />→ <strong>Until the condition becomes false</strong>.</p>
<pre><code class="lang-python">distance = <span class="hljs-number">3</span>
<span class="hljs-keyword">while</span> distance &gt; <span class="hljs-number">0</span>:
    print(<span class="hljs-string">"Are we there yet?"</span>)
    distance -= <span class="hljs-number">1</span>
</code></pre>
<p><strong>X X Infinite Loop Warning</strong>:<br />Forget to change the condition? Python will loop <strong>forever</strong> like your brain overthinking a text message.</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1746236803617/3ae3ef8f-3165-4fab-a00c-3c21a9d6606f.jpeg" alt class="image--center mx-auto" /></p>
<h3 id="heading-ia-2"> </h3>
<p><strong>2.</strong> <code>for</code> Loop — The Tour Guide With a List</p>
<p>A for-loop is like a tour guide:<br />"Everyone, line up! I’ll call your names one by one."</p>
<pre><code class="lang-python">places = [<span class="hljs-string">"Paris"</span>, <span class="hljs-string">"Tokyo"</span>, <span class="hljs-string">"Delhi"</span>]
<span class="hljs-keyword">for</span> city <span class="hljs-keyword">in</span> places:
    print(<span class="hljs-string">"Welcome to"</span>, city)
</code></pre>
<p>Best used for:</p>
<ul>
<li><p>Going through lists, strings, dictionaries.</p>
</li>
<li><p>Running things a <strong>known number of times</strong>.</p>
</li>
</ul>
<h3 id="heading-3loop-with-range-the-counter-with-a-jetpack">3.<strong>Loop with</strong> <code>range()</code> — The Counter with a Jetpack</h3>
<p><code>range()</code> is like your hyper-energetic friend counting steps — from start, to end, with optional jumps.</p>
<pre><code class="lang-python"><span class="hljs-keyword">for</span> step <span class="hljs-keyword">in</span> range(<span class="hljs-number">1</span>, <span class="hljs-number">10</span>, <span class="hljs-number">2</span>):
    print(<span class="hljs-string">"Taking step"</span>, step)
</code></pre>
<p>Meaning:</p>
<ul>
<li><p><code>range(start, stop, step)</code></p>
</li>
<li><p>Includes <code>start</code>, <strong>excludes</strong> <code>stop</code></p>
</li>
<li><p>Steps by <code>step</code></p>
</li>
</ul>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1746237394013/e862a326-6e2a-4ae0-a7b1-5b6ac8002032.png" alt class="image--center mx-auto" /></p>
<h2 id="heading-ia-3"> </h2>
<p>So this is how our journey towards the control statements ends. Endings are sad but not this one , “mai kal phir muh utha kai ek article daal dunga”. Okay bye .</p>
]]></content:encoded></item><item><title><![CDATA[Python Data Structures: Imagine If They Were People at a Party.]]></title><description><![CDATA[1. Lists – The Chill Friend Who Brings Everyone and Their Cousins.
Lists are like that one guy at a party who brings people, forgets who he invited, changes the playlist mid-way, and adds a few last-minute snacks.
Behavior:

Ordered like a guest list...]]></description><link>https://mandeep-data-science.hashnode.dev/python-data-structures-imagine-if-they-were-people-at-a-party</link><guid isPermaLink="true">https://mandeep-data-science.hashnode.dev/python-data-structures-imagine-if-they-were-people-at-a-party</guid><category><![CDATA[ChaiCode]]></category><dc:creator><![CDATA[MANDEEP SHARMA]]></dc:creator><pubDate>Sat, 03 May 2025 01:20:35 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1746233380583/056cd472-4aad-439d-9f75-4e84682bf064.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2 id="heading-1-lists-the-chill-friend-who-brings-everyone-and-their-cousins">1. <strong>Lists – The Chill Friend Who Brings Everyone and Their Cousins.</strong></h2>
<p>Lists are like that one guy at a party who brings people, forgets who he invited, changes the playlist mid-way, and adds a few last-minute snacks.</p>
<h3 id="heading-behavior">Behavior:</h3>
<ul>
<li><p><strong>Ordered</strong> like a guest list.(Fav guests on TOP)</p>
</li>
<li><p><strong>Mutable</strong> — keeps changing his mind.(Some Relatives just don’t deserve)</p>
</li>
<li><p><strong>Duplicates allowed</strong> — brings 2 Deep? No problem.(My Unique friendships)</p>
</li>
</ul>
<pre><code class="lang-python">party_guests = [<span class="hljs-string">"Ashwin"</span>, <span class="hljs-string">"Manjeet"</span>, <span class="hljs-string">"Sambhav"</span>]
party_guests.append(<span class="hljs-string">"Deepak"</span>)         <span class="hljs-comment"># more guests!</span>
party_guests[<span class="hljs-number">1</span>] = <span class="hljs-string">"Mandeep"</span>             <span class="hljs-comment"># name change</span>
party_guests.remove(<span class="hljs-string">"Ashwin"</span>)          <span class="hljs-comment"># kicked out</span>
</code></pre>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1746233848877/511057ab-a53d-4412-b589-85e1f8c21025.jpeg" alt class="image--center mx-auto" /></p>
<h2 id="heading-2-tuples-the-grandma-who-doesnt-change-anything">2. <strong>Tuples – The Grandma Who Doesn’t Change Anything</strong></h2>
<p>Tuples are like your grandma’s living room — <strong>you don’t touch anything</strong>. The chairs have been there since 1994, and you <em>will</em> get a look if you try moving one. :) :)</p>
<h3 id="heading-behavior-1">Behavior:</h3>
<ul>
<li><p><strong>Ordered</strong> — she knows exactly where everything goes (obviously she is perfect).</p>
</li>
<li><p><strong>Immutable</strong> — “Don’t even think about changing that!” (I have no guts!!)</p>
</li>
<li><p><strong>Duplicates?</strong> Sure, if grandma put two identical vases, that’s her business.(Leaving on her).</p>
</li>
</ul>
<pre><code class="lang-python">living_room = (<span class="hljs-string">"sofa"</span>, <span class="hljs-string">"lamp"</span>, <span class="hljs-string">"TV"</span>, <span class="hljs-string">"sofa"</span>)
print(living_room[<span class="hljs-number">1</span>])         <span class="hljs-comment"># lamp</span>
<span class="hljs-comment"># living_room[1] = "plant"   # Grandma said NO.</span>
</code></pre>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1746234362601/1e1dc75d-954a-4ad6-947a-4499c44fe631.jpeg" alt class="image--center mx-auto" /></p>
<h2 id="heading-3-dictionaries-the-uncle-with-a-guest-list-and-secrets">3. <strong>Dictionaries – The “UNCLE” With a Guest List and Secrets</strong></h2>
<p>A dictionary is like a <strong>“UNCLE” with a clipboard</strong> — names (keys) on the list, info (values) behind the scenes. Try asking for someone who’s not on the list — <em>And you just can’t by pass his eyes….</em></p>
<h3 id="heading-behavior-2">Behavior:</h3>
<ul>
<li><p><strong>Key-value pairs</strong> — Name + Phone Number (He like confirmations)</p>
</li>
<li><p><strong>Keys must be unique</strong> — two “Rahuls”? Nope, one Rahul only.(Don’t like Rahuls)</p>
</li>
<li><p><strong>Mutable</strong> — add, remove, or update any entry.(ahh, He is that only good).</p>
</li>
</ul>
<pre><code class="lang-python">guest_info = {
  <span class="hljs-string">"Mandeep"</span>: <span class="hljs-string">"Programmer"</span>,
  <span class="hljs-string">"Aisha"</span>: <span class="hljs-string">"Designer"</span>
}
guest_info[<span class="hljs-string">"Sam"</span>] = <span class="hljs-string">"Musician"</span>
<span class="hljs-keyword">del</span> guest_info[<span class="hljs-string">"Aisha"</span>]
</code></pre>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1746234698194/2dd35481-0506-466b-854a-bd8064d55877.jpeg" alt class="image--center mx-auto" /></p>
<h2 id="heading-ia"> </h2>
<p>4. <strong>Sets – The Anti-Drama Friend Who Hates Repeats.</strong></p>
<p>A <strong>set</strong> is like a no-nonsense minimalist — “You already told that joke, move on.” Try repeating a story? "Ignored” <em>.</em> Try adding “banana” twice? <em>Still one banana…</em></p>
<h3 id="heading-behavior-3">Behavior:</h3>
<ul>
<li><p><strong>Unordered</strong> — throws out your fancy order. (don’t care)</p>
</li>
<li><p><strong>No duplicates allowed (don’t just like repeating things)</strong></p>
</li>
<li><p><strong>Mutable</strong> — but selective.(Selecticism : even I don’t know what it means)</p>
</li>
</ul>
<pre><code class="lang-python">snack_bowl = {<span class="hljs-string">"apple"</span>, <span class="hljs-string">"banana"</span>, <span class="hljs-string">"apple"</span>, <span class="hljs-string">"mango"</span>}
print(snack_bowl)  <span class="hljs-comment"># Only one apple. Sorry.</span>
snack_bowl.add(<span class="hljs-string">"kiwi"</span>)
</code></pre>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1746234988085/245ed041-a672-4bc9-830e-9d67e35bd3f4.jpeg" alt class="image--center mx-auto" /></p>
<h2 id="heading-and-this-is-how-party-ends-with-a-relief-that-no-one-touched-grandmas-things">And this is How Party ends with a relief that no one touched grandma’s things.</h2>
<p>So give me permission to go also , it’s too late….</p>
<h2 id="heading-bye-meet-you-in-some-other-blogs">Bye :) Meet you in some other blogs.</h2>
]]></content:encoded></item><item><title><![CDATA[Strings in Python (Story of Necklace).]]></title><description><![CDATA[Think of Python String as a necklace where each character is a bead. You can observe, copy, or rearrange parts of it — but you can’t just swap a bead in place.
Strings are beautiful, delicate , and most importantly — immutable.
What is Strings in Pyt...]]></description><link>https://mandeep-data-science.hashnode.dev/strings-in-python-story-of-necklace</link><guid isPermaLink="true">https://mandeep-data-science.hashnode.dev/strings-in-python-story-of-necklace</guid><category><![CDATA[ChaiCode]]></category><dc:creator><![CDATA[MANDEEP SHARMA]]></dc:creator><pubDate>Sat, 26 Apr 2025 05:12:57 GMT</pubDate><content:encoded><![CDATA[<p><strong><em>Think of Python String as a necklace where each character is a bead. You can observe, copy, or rearrange parts of it — but you can’t just swap a bead in place.</em></strong></p>
<p><strong><em>Strings are beautiful, delicate , and most importantly — immutable.</em></strong></p>
<h2 id="heading-what-is-strings-in-python">What is Strings in Python ??</h2>
<p>A String is a sequence of characters wrapped in quotes.</p>
<pre><code class="lang-python">text = <span class="hljs-string">"Python is fun"</span>
</code></pre>
<p>Think of “Python is fun” as a <em>“necklace of characters”.</em></p>
<pre><code class="lang-markdown">Index:   0 1 2 3 4 5 6 7 8 9 10 11 12
Char :   P y t h o n   i s   f  u  n
</code></pre>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1745643363788/52468ebf-1bcd-48ba-ac97-0c7624a932e2.jpeg" alt class="image--center mx-auto" /></p>
<h2 id="heading-string-slicing-cutting-your-necklace">String Slicing : Cutting Your Necklace.</h2>
<h2 id="heading-syntax">Syntax :-</h2>
<pre><code class="lang-python">string[start:stop:step]
</code></pre>
<div class="hn-table">
<table>
<thead>
<tr>
<td>Slice</td><td>What It Does</td><td>Example</td><td>Output</td></tr>
</thead>
<tbody>
<tr>
<td><code>s[0:5]</code></td><td>Characters from index 0 to 4</td><td><code>"Python"[0:5]</code></td><td><code>"Pytho"</code></td></tr>
<tr>
<td><code>s[:6]</code></td><td>From start to index 5</td><td><code>"Python"[:6]</code></td><td><code>"Python"</code></td></tr>
<tr>
<td><code>s[2:]</code></td><td>From index 2 to end</td><td><code>"Python"[2:]</code></td><td><code>"thon"</code></td></tr>
<tr>
<td><code>s[-1]</code></td><td>Last character</td><td><code>"Python"[-1]</code></td><td><code>"n"</code></td></tr>
<tr>
<td><code>s[::-1]</code></td><td>Reversed string</td><td><code>"Python"[::-1]</code></td><td><code>"nohtyP"</code></td></tr>
</tbody>
</table>
</div><p><strong><em>“Slicing is like cutting a portion of the necklace or reversing it by flipping it around.”</em></strong></p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1745643447089/42f05678-0d5e-4f52-a9ee-878ba2237c38.jpeg" alt class="image--center mx-auto" /></p>
<h2 id="heading-immutable-nature-of-strings">Immutable Nature of Strings</h2>
<p>Python Strings are Immutable means you can ‘t change them after creation.</p>
<pre><code class="lang-python">s = <span class="hljs-string">"hello"</span>
s[<span class="hljs-number">0</span>] = <span class="hljs-string">"H"</span>  <span class="hljs-comment"># ❌ Error!</span>
</code></pre>
<p>“You can’ t just replace one bead in a sealed necklace. You have to make a new necklace.“</p>
<pre><code class="lang-python">s = <span class="hljs-string">"hello"</span>
s = <span class="hljs-string">"H"</span> + s[<span class="hljs-number">1</span>:]  <span class="hljs-comment"># ✅ New string</span>
</code></pre>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1745644151546/fc50c2ea-ea1a-4491-a2d8-f892421c30ac.png" alt class="image--center mx-auto" /></p>
<h2 id="heading-ia"> </h2>
<p>Commonly Used String Methods.</p>
<p>This is the go-to toolkit of strings methods, with examples and meanings.</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td>Method</td><td>Purpose</td><td>Example</td><td>Output</td></tr>
</thead>
<tbody>
<tr>
<td><code>.lower()</code></td><td>Convert to lowercase</td><td><code>"HELLO".lower()</code></td><td><code>"hello"</code></td></tr>
<tr>
<td><code>.upper()</code></td><td>Convert to uppercase</td><td><code>"hello".upper()</code></td><td><code>"HELLO"</code></td></tr>
<tr>
<td><code>.title()</code></td><td>Capitalize first letter of each word</td><td><code>"python is fun".title()</code></td><td><code>"Python Is Fun"</code></td></tr>
<tr>
<td><code>.strip()</code></td><td>Remove whitespace</td><td><code>" text ".strip()</code></td><td><code>"text"</code></td></tr>
<tr>
<td><code>.replace(a, b)</code></td><td>Replace substring</td><td><code>"hi buddy".replace("buddy","Mandeep")</code></td><td><code>"hi Mandeep"</code></td></tr>
<tr>
<td><code>.find()</code></td><td>Find index of first occurrence</td><td><code>"python".find("t")</code></td><td><code>2</code></td></tr>
<tr>
<td><code>.count()</code></td><td>Count occurrences of substring</td><td><code>"banana".count("a")</code></td><td><code>3</code></td></tr>
<tr>
<td><code>.split()</code></td><td>Split into list</td><td><code>"a,b,c".split(",")</code></td><td><code>['a', 'b', 'c']</code></td></tr>
<tr>
<td><code>.join()</code></td><td>Join list into string</td><td><code>",".join(['a','b'])</code></td><td><code>"a,b"</code></td></tr>
<tr>
<td><code>.startswith()</code></td><td>Check if starts with</td><td><code>"code".startswith("c")</code></td><td><code>True</code></td></tr>
<tr>
<td><code>.endswith()</code></td><td>Check if ends with</td><td><code>"code".endswith("e")</code></td><td><code>True</code></td></tr>
<tr>
<td><code>.isalnum()</code></td><td>Checks if all chars are alphanumeric</td><td><code>"abc123".isalnum()</code></td><td><code>True</code></td></tr>
<tr>
<td><code>.isalpha()</code></td><td>Checks if all are letters</td><td><code>"abc".isalpha()</code></td><td><code>True</code></td></tr>
</tbody>
</table>
</div><p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1745644019934/57658090-3965-47de-80d4-808524ea8621.jpeg" alt class="image--center mx-auto" /></p>
<h1 id="heading-conclusion-strings-are-beads-with-rules">Conclusion : Strings are Beads with Rules.</h1>
<h3 id="heading-a-string-might-look-like-simple-text-but-in-python-its-a-structured-immutable-chain-of-characters-you-can-slice-it-clone-it-analyze-it-but-never-mutate-it-in-place">“A String might look like simple text , but in Python, it’s a structured , immutable chain of characters. You can slice it , clone it , analyze it , but never mutate it in-place.”</h3>
<h2 id="heading-thank-you-once-again-to-read-the-article-till-here-and-always-open-for-any-suggestionscriticism">Thank you , once again to read the article till here , and always open for any suggestions/criticism.</h2>
]]></content:encoded></item><item><title><![CDATA[Operators in Python (or Skilled Workers).]]></title><description><![CDATA[How operators are Skilled Workers ??
Think of Python as a factory, and operators as the workers or machines that transform raw data(numbers and variables) into meaningful output.
Let Start this journey by knowing each category of workers and what the...]]></description><link>https://mandeep-data-science.hashnode.dev/operators-in-python-or-skilled-workers</link><guid isPermaLink="true">https://mandeep-data-science.hashnode.dev/operators-in-python-or-skilled-workers</guid><category><![CDATA[ChaiCode]]></category><dc:creator><![CDATA[MANDEEP SHARMA]]></dc:creator><pubDate>Sat, 26 Apr 2025 04:29:49 GMT</pubDate><content:encoded><![CDATA[<h1 id="heading-how-operators-are-skilled-workers">How operators are Skilled Workers ??</h1>
<p><strong><em>Think of Python as a factory, and operators as the workers or machines that transform raw data(numbers and variables) into meaningful output.</em></strong></p>
<p>Let Start this journey by knowing each category of workers and what they do .</p>
<h2 id="heading-1arithmetic-operators-basic-machinery">1.Arithmetic Operators = Basic Machinery</h2>
<p><strong>In our factory , arithmetic operators are like core machines doing cutting, assembling, multiplying, etc.</strong></p>
<p>For examples :-</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td>Operator</td><td>Meaning</td><td>Example</td><td>Result</td></tr>
</thead>
<tbody>
<tr>
<td><code>+</code></td><td>Add</td><td><code>5 + 2</code></td><td><code>7</code></td></tr>
<tr>
<td><code>-</code></td><td>Subtract</td><td><code>5 - 2</code></td><td><code>3</code></td></tr>
<tr>
<td><code>*</code></td><td>Multiply</td><td><code>5 * 2</code></td><td><code>10</code></td></tr>
<tr>
<td><code>/</code></td><td>Divide</td><td><code>5 / 2</code></td><td><code>2.5</code></td></tr>
<tr>
<td><code>//</code></td><td>Floor Divide</td><td><code>5 // 2</code></td><td><code>2</code></td></tr>
<tr>
<td><code>%</code></td><td>Modulus</td><td><code>5 % 2</code></td><td><code>1</code></td></tr>
<tr>
<td><code>**</code></td><td>Power</td><td><code>5 ** 2</code></td><td><code>25</code></td></tr>
</tbody>
</table>
</div><p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1745639483884/6966f9b6-60ad-41d1-851d-b304051315b2.jpeg" alt class="image--center mx-auto" /></p>
<h2 id="heading-2comparison-operators-quality-check-department">2.Comparison Operators = Quality Check Department.</h2>
<p><strong>These workers compare two products and give a True or False verdict. They decide if things are equal, greater or different</strong>.</p>
<p>For examples :-</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td>Operator</td><td>Example</td><td>Result</td></tr>
</thead>
<tbody>
<tr>
<td>\==</td><td>5 == 5</td><td>True</td></tr>
<tr>
<td>!=</td><td>5 != 4</td><td>True</td></tr>
<tr>
<td>\&gt;</td><td>5 &gt; 3</td><td>True</td></tr>
<tr>
<td>&lt;</td><td>5 &lt; 3</td><td>False</td></tr>
<tr>
<td>\&gt;=</td><td>5 &gt;= 5</td><td>True</td></tr>
<tr>
<td>&lt;=</td><td>5 &lt;= 3</td><td>False</td></tr>
</tbody>
</table>
</div><p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1745639753974/3152f753-c63b-439f-ac32-211e15f97040.jpeg" alt class="image--center mx-auto" /></p>
<h2 id="heading-3logical-operator-the-ai-brain-of-the-factory">3.Logical Operator = The AI Brain of the Factory</h2>
<p>T<strong>hese Operators(workers) make decisions based on the multiple conditions. Think of them as the central brain of the factory deciding if production should continue.</strong></p>
<div class="hn-table">
<table>
<thead>
<tr>
<td>Operator</td><td>Description</td><td>Example</td><td>Result</td></tr>
</thead>
<tbody>
<tr>
<td>and</td><td>Both conditions true</td><td>True or False</td><td>False</td></tr>
<tr>
<td>or</td><td>At least one is true</td><td>True or False</td><td>True</td></tr>
<tr>
<td>not</td><td>Reverses the condition</td><td>Not true</td><td>False</td></tr>
</tbody>
</table>
</div><p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1745640726910/532da3f4-4682-4739-8a1d-1343d8662ed1.png" alt class="image--center mx-auto" /></p>
<h2 id="heading-4assignment-operator-storage-and-update-team">4.Assignment operator = Storage and Update Team.</h2>
<p><strong>These workers assign values and also update them efficiently. They handle storage and tagging of your variables.</strong></p>
<div class="hn-table">
<table>
<thead>
<tr>
<td>Operator</td><td>Meaning</td><td>Example</td><td>Equivalent To</td></tr>
</thead>
<tbody>
<tr>
<td>\=</td><td>Assign value</td><td><code>x = 5</code></td><td>—</td></tr>
<tr>
<td>+=</td><td>Add and assign</td><td><code>x += 3</code></td><td><code>x = x + 3</code></td></tr>
<tr>
<td>-=</td><td>Subtract &amp; assign</td><td><code>x -= 2</code></td><td><code>x = x - 2</code></td></tr>
<tr>
<td>*=</td><td>Multiply &amp; assign</td><td><code>x *= 2</code></td><td><code>x = x * 2</code></td></tr>
</tbody>
</table>
</div><p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1745641003500/b8ae7884-4073-4a12-b6ce-184ab3ff6074.jpeg" alt class="image--center mx-auto" /></p>
<h2 id="heading-5bitwise-operators-the-micro-engineers">5.Bitwise Operators = The Micro-Engineers</h2>
<p><strong>They work on the binary level, flipping switches and moving bits left and right — Think engineers working deep in the control room.</strong></p>
<div class="hn-table">
<table>
<thead>
<tr>
<td>Operator</td><td>Example</td><td>Result</td></tr>
</thead>
<tbody>
<tr>
<td><code>&amp;</code></td><td><code>5 &amp; 3</code></td><td><code>1</code></td></tr>
<tr>
<td>`</td><td>`</td><td>`5</td></tr>
<tr>
<td><code>^</code></td><td><code>5 ^ 3</code></td><td><code>6</code></td></tr>
<tr>
<td><code>~</code></td><td><code>~5</code></td><td><code>-6</code></td></tr>
<tr>
<td><code>&lt;&lt;</code></td><td><code>5 &lt;&lt; 1</code></td><td><code>10</code></td></tr>
<tr>
<td><code>&gt;&gt;</code></td><td><code>5 &gt;&gt; 1</code></td><td><code>2</code></td></tr>
</tbody>
</table>
</div><p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1745641363158/2295d981-19d4-489b-b6b1-f2d6075dfe74.png" alt class="image--center mx-auto" /></p>
<h2 id="heading-6membership-amp-identity-operators-security-guards">6.Membership &amp; Identity Operators = Security Guards.</h2>
<p>They guard the entry and verify identity.</p>
<p>→ in , not in : Check if a variable is inside a collection.</p>
<p>→ is , not is : Check if two variables point to the same object in memory.</p>
<p>Example :-</p>
<pre><code class="lang-python">x = [<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>]
print(<span class="hljs-number">2</span> <span class="hljs-keyword">in</span> x)       <span class="hljs-comment"># True</span>
print(x <span class="hljs-keyword">is</span> x)       <span class="hljs-comment"># True</span>
</code></pre>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1745641579102/2537edcd-d647-4088-9768-90f20c30be1c.png" alt class="image--center mx-auto" /></p>
<h1 id="heading-you-are-running-a-factory-not-just-writing-code">You are Running a factory , Not just writing code.</h1>
<h3 id="heading-so-next-time-when-you-write-a-b-or-x-y-remember-youre-commanding-a-whole-factory-of-skilled-workers">So , next time when you write a + b or x == y , remember ——- you’re commanding a whole factory of skilled workers.</h3>
<h3 id="heading-operators-arent-just-symbols-they-re-the-hands-and-brains-of-your-code">Operators aren’t just symbols , they ‘re the hands and brains of your code.</h3>
<h3 id="heading-make-them-work-smart-and-your-python-code-will-run-like-a-well-oiled-machine">Make them work smart , and your Python code will run like a well-oiled machine.</h3>
<h1 id="heading-thank-you-for-reading-till-here-please-drop-a-review-so-i-can-try-better">Thank you , for Reading till here .. Please drop a review so i can try better.</h1>
]]></content:encoded></item><item><title><![CDATA[Python :- The Start]]></title><description><![CDATA[Hi there , Mandeep this side !
Today I am gonna share with you , what I have learned from the Today’s class …
First I thought of creating something very banger than I realized that for this easy stuffs and starting bits I will avoid wasting your time...]]></description><link>https://mandeep-data-science.hashnode.dev/python-the-start</link><guid isPermaLink="true">https://mandeep-data-science.hashnode.dev/python-the-start</guid><category><![CDATA[ChaiCode]]></category><dc:creator><![CDATA[MANDEEP SHARMA]]></dc:creator><pubDate>Sun, 13 Apr 2025 15:52:42 GMT</pubDate><content:encoded><![CDATA[<h3 id="heading-hi-there-mandeep-this-side">Hi there , Mandeep this side !</h3>
<p>Today I am gonna share with you , what I have learned from the Today’s class …</p>
<h3 id="heading-first-i-thought-of-creating-something-very-banger-than-i-realized-that-for-this-easy-stuffs-and-starting-bits-i-will-avoid-wasting-your-time-because-time-matters">First I thought of creating something very banger than I realized that for this easy stuffs and starting bits I will avoid wasting your time , because time matters.</h3>
<h3 id="heading-so-i-wrote-a-short-notes-on-todays-class-so-you-can-refer-them-we-will-discuss-things-in-future-when-things-worth-taking-time-but-for-now-let-s-head-into-a-small-recap">So i wrote a short notes on today’s class so you can refer them , we will discuss things in future when things worth taking time . But for now let ‘s head into a small recap …</h3>
<h2 id="heading-python">Python</h2>
<h3 id="heading-print-print-function-in-python">print( ) :- print() function in python</h3>
<p>We use it to display the data given by the user. For an example</p>
<pre><code class="lang-python">print(<span class="hljs-string">"Hello World"</span>)
</code></pre>
<p>this print function contains three params “file” , “sep” , “end” : for now we will discuss ‘sep’ and ‘end’.</p>
<ol>
<li><p>end :- This parameter ask you to enter a string / character that you want to get print after the whole print data in the print function. for example  </p>
<pre><code class="lang-python"> print(<span class="hljs-string">"Hello"</span>,end = <span class="hljs-string">" "</span>)
 print(<span class="hljs-string">"World"</span>)
 <span class="hljs-comment">#OUTPUT :- Hello World</span>
</code></pre>
</li>
<li><p>sep :- Now what this parameter do . Hmm , as the name suggest that sep means seprator , when you assign some character or string to this “sep” param it will seperate the string by that , for example :-</p>
<pre><code class="lang-python"> print(<span class="hljs-string">"Apple"</span>,<span class="hljs-string">"Banana"</span>,<span class="hljs-string">"Orange"</span>,sep = <span class="hljs-string">","</span>)
 <span class="hljs-comment">#OUTPUT :- Apple , Banana , Orange</span>
</code></pre>
</li>
</ol>
<h3 id="heading-input-function-input-function-of-python">input() function :- Input function of python</h3>
<p>this function is very straight forward it is use to take input from the user , also in this input function we can send a string value which act as a placeholder for the user to indicate user what you are expecting in this block.</p>
<pre><code class="lang-python">user_input = input(<span class="hljs-string">"Enter your name :"</span>) <span class="hljs-comment"># =&gt; Mandeep</span>
<span class="hljs-comment">#we can display them as well</span>
print(<span class="hljs-string">"Hey my name is "</span> + user_input) <span class="hljs-comment"># =&gt; Hey my name is Mandeep</span>
</code></pre>
<p>Now lets try to update the variable ,</p>
<pre><code class="lang-python">user_input = <span class="hljs-string">"Amandeep"</span> 
print(<span class="hljs-string">"Hey name is "</span> + user_input) <span class="hljs-comment"># =&gt; Hey my name is Amandeep</span>
</code></pre>
<h3 id="heading-why-the-data-is-changed-where-the-old-data-gone-now">Why the DATA is changed ???? Where the old data gone now ???</h3>
<p>What happen is when you create a variable and assign the data to it , then that data is stored in an object internally in python and that variable name will start pointing to it , now if you assign any Value to that same variable then that variable will point to this new object not that the old one , and that old one will erased by garbage collector.</p>
<h3 id="heading-how-garbage-collector-triggers">How Garbage collector triggers??</h3>
<p>Heap memory have threshold that if 70%(some value) of my heap memory is used then garbage collector come and clear the objects that don't have any variable assign to it.</p>
<p>Now in short all of the objects get cleared which don’t have variable pointing them…</p>
<h3 id="heading-comments-everyone-remembers-them-but-but-let-see-once">Comments :- Everyone remembers them but but let see once…</h3>
<ol>
<li>We use ‘#’ to write a single line comment , example down here …</li>
</ol>
<pre><code class="lang-python"><span class="hljs-comment"># This is a Single Line comment</span>
print(<span class="hljs-string">"Added the single Line comment"</span>)
</code></pre>
<ol start="2">
<li>We use ‘‘‘ ‘‘‘ group of 3 - 3 single quotes to write multiline comment , example like always down here</li>
</ol>
<pre><code class="lang-python"><span class="hljs-string">'''
This is a MultiLine comment
That iam using here
We will do to acheive higher infomation display
'''</span>
print(<span class="hljs-string">"Added multiline comment"</span>)
</code></pre>
<h3 id="heading-indentation-facility-in-python-which-works-as-code-block-seperator">INDENTATION :- Facility in python which works as code block seperator.</h3>
<p>We use indentation in python to seperate some code from some code , Ahh okay think like this that you have to write some code under the influence of above written code then you use this INDENTATION to seperate them which make python understand that this indented code will run only if this above one triggers.</p>
<p>For better understanding see this example :-</p>
<pre><code class="lang-python">x = <span class="hljs-number">5</span>
<span class="hljs-keyword">if</span> x &gt; <span class="hljs-number">3</span>:
    print(<span class="hljs-string">"X is greater than 3"</span>)
</code></pre>
<p>Here , We write a If block of code and then print statement using indentation which suggest that if the “if” block executes properly then only you should run the “under written” or “under influenced line” .</p>
<p><strong>** Unpopular Opinion but I like Curly braces more this is confusing yaar</strong> **</p>
<h3 id="heading-variables-i-will-not-waste-time-here-just-straight-forward-rules-that-you-have-to-follow">Variables : - I will not waste time here just straight forward rules that you have to follow</h3>
<p>So while Creating Variables there are some written and unwritten rules that you should follow .</p>
<ol>
<li><p>Written :- Let first see the Written one which are imposed by python.</p>
<p> how to name a variable ? The naming of the variable should be senseful which help you to do define your code in best way not the leasure that you can use.</p>
<p> <strong>Legal Variable Name</strong> :- Rules by python on variable naming ,</p>
<ol>
<li><p>Letter (a-z , A-Z)</p>
</li>
<li><p>digits (0-9)</p>
</li>
<li><p>Underscore</p>
</li>
</ol>
</li>
</ol>
<p>    but remember your variable should always start with a letter.</p>
<p>    <strong>Case Sensitivity</strong> :- In python there is case sensitivity for variables because "a" and "A" is considered as different.</p>
<ol start="2">
<li><p>UnWritten : - Yaa it’s unwritten but never name variable like ‘a’ ,’b’ , etc like this means useless nomenclature that you follow pls don’t do this , So what to do ??</p>
<p> You should put their name sensible like “userData” , “knownData”, “rawData” etc ..</p>
</li>
<li><p><strong>KEYWORDS</strong> :- The reserved words like input , print , for , if , else This are keywords in python you can't make them variables . So this is rule yaa sure try to create one you will slamed by python , sorry but yes it is true , So try to avoid them</p>
<p> And you will come to Know soon which are keywords in python.</p>
</li>
</ol>
<h3 id="heading-datatypes-nature-of-variables">DATATYPES :- Nature of Variables</h3>
<p>Now we have created a lot of variables but who will decide their datatypes , for you Python do that internally , yaa you are free to create variable and use them .. :)))</p>
<p>for example :- Let us create multiple variable and check their types</p>
<pre><code class="lang-python">integer_val = <span class="hljs-number">2</span>
complex_val = <span class="hljs-number">2</span> - <span class="hljs-number">5j</span>
string_val = <span class="hljs-string">"This is string"</span>
float_val = <span class="hljs-number">3.14</span>

type(integer_val)
type(complex_val)
type(string_val)
type(float_val)
</code></pre>
<h2 id="heading-thank-you">Thank you : )</h2>
<h3 id="heading-yaa-thanks-for-being-with-me-till-here-i-invested-a-lot-of-time-by-writing-this-myself-so-just-like-it-or-make-comment-and-if-there-is-any-thing-that-i-wrote-wrong-pls-tell-me-in-comment-or-discord-i-will-edit-that-i-have-written-more-blogs-before-you-can-explore-if-you-need-an-upper-hand-in-python">Yaa thanks for being with me till here , I invested a lot of time by writing this myself so just like it or make comment , and if there is any thing that i wrote wrong pls tell me in comment or discord I will edit that . I have written more blogs before you can explore if you need an upper hand in python ……..</h3>
<h1 id="heading-bye-bye">Bye Bye : )</h1>
]]></content:encoded></item></channel></rss>