<?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[DSV Logs! - Medium]]></title>
        <description><![CDATA[Documenting my shift from data science to AI Automation | Also includes posts from www.datascienceville.com - Medium]]></description>
        <link>https://medium.com/datascience-ville?source=rss----3d847c9b8cbe---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>DSV Logs! - Medium</title>
            <link>https://medium.com/datascience-ville?source=rss----3d847c9b8cbe---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 04:28:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/datascience-ville" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[BIG NEWS: I’m Building a Code Snippet Manager — PyLog #03]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/datascience-ville/big-news-im-building-a-code-snippet-manager-pylog-03-08fdd024a519?source=rss----3d847c9b8cbe---4"><img src="https://cdn-images-1.medium.com/max/1792/1*KN0cnUIbBHnab8gHUQeDRQ.jpeg" width="1792"></a></p><p class="medium-feed-snippet">Or I guess it&#x2019;s neither big nor news for you &#x1F60A;</p><p class="medium-feed-link"><a href="https://medium.com/datascience-ville/big-news-im-building-a-code-snippet-manager-pylog-03-08fdd024a519?source=rss----3d847c9b8cbe---4">Continue reading on DSV Logs! »</a></p></div>]]></description>
            <link>https://medium.com/datascience-ville/big-news-im-building-a-code-snippet-manager-pylog-03-08fdd024a519?source=rss----3d847c9b8cbe---4</link>
            <guid isPermaLink="false">https://medium.com/p/08fdd024a519</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[snippet]]></category>
            <category><![CDATA[app-development]]></category>
            <dc:creator><![CDATA[Kester R.]]></dc:creator>
            <pubDate>Thu, 03 Apr 2025 12:59:26 GMT</pubDate>
            <atom:updated>2025-04-03T13:02:10.355Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[What I’ve Been Up to — PyLog #02]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/datascience-ville/what-ive-been-up-to-pylog-02-737142923ba8?source=rss----3d847c9b8cbe---4"><img src="https://cdn-images-1.medium.com/max/1792/1*U0sB6IltNQ76V98sLvlNbQ.jpeg" width="1792"></a></p><p class="medium-feed-snippet">Exploring Tkinter</p><p class="medium-feed-link"><a href="https://medium.com/datascience-ville/what-ive-been-up-to-pylog-02-737142923ba8?source=rss----3d847c9b8cbe---4">Continue reading on DSV Logs! »</a></p></div>]]></description>
            <link>https://medium.com/datascience-ville/what-ive-been-up-to-pylog-02-737142923ba8?source=rss----3d847c9b8cbe---4</link>
            <guid isPermaLink="false">https://medium.com/p/737142923ba8</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[gui]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[tkinter]]></category>
            <dc:creator><![CDATA[Kester R.]]></dc:creator>
            <pubDate>Mon, 10 Mar 2025 17:40:37 GMT</pubDate>
            <atom:updated>2025-03-10T17:40:37.134Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Coding Highlights From the Past Week]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/datascience-ville/coding-highlights-from-the-past-week-cd1aa9b7cf99?source=rss----3d847c9b8cbe---4"><img src="https://cdn-images-1.medium.com/max/1200/1*rGXsSNch8-Ruxxdz2H2YhA.gif" width="1200"></a></p><p class="medium-feed-snippet">Lambda Functions, Type Hinting, and Zipping Lists</p><p class="medium-feed-link"><a href="https://medium.com/datascience-ville/coding-highlights-from-the-past-week-cd1aa9b7cf99?source=rss----3d847c9b8cbe---4">Continue reading on DSV Logs! »</a></p></div>]]></description>
            <link>https://medium.com/datascience-ville/coding-highlights-from-the-past-week-cd1aa9b7cf99?source=rss----3d847c9b8cbe---4</link>
            <guid isPermaLink="false">https://medium.com/p/cd1aa9b7cf99</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[type-hinting]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[lambda-function]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Kester R.]]></dc:creator>
            <pubDate>Sun, 15 Sep 2024 18:27:01 GMT</pubDate>
            <atom:updated>2024-09-15T18:27:01.126Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[5 Favorite Python Hacks I Discovered During My 30-Day Coding Challenge]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/datascience-ville/5-favorite-hacks-i-discovered-during-my-30-day-coding-challenge-b0ecf5eac1dd?source=rss----3d847c9b8cbe---4"><img src="https://cdn-images-1.medium.com/max/1792/1*z_u4D020HJjTZ3FOugGeUA.jpeg" width="1792"></a></p><p class="medium-feed-snippet">A Brief Recap of My 30-Day Challenge</p><p class="medium-feed-link"><a href="https://medium.com/datascience-ville/5-favorite-hacks-i-discovered-during-my-30-day-coding-challenge-b0ecf5eac1dd?source=rss----3d847c9b8cbe---4">Continue reading on DSV Logs! »</a></p></div>]]></description>
            <link>https://medium.com/datascience-ville/5-favorite-hacks-i-discovered-during-my-30-day-coding-challenge-b0ecf5eac1dd?source=rss----3d847c9b8cbe---4</link>
            <guid isPermaLink="false">https://medium.com/p/b0ecf5eac1dd</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[30-day-challenge]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Kester R.]]></dc:creator>
            <pubDate>Sat, 14 Sep 2024 23:17:06 GMT</pubDate>
            <atom:updated>2024-09-14T23:17:46.046Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Makeup Day 4 — Challenge Completed!]]></title>
            <link>https://medium.com/datascience-ville/makeup-day-4-challenge-completed-e005302e9378?source=rss----3d847c9b8cbe---4</link>
            <guid isPermaLink="false">https://medium.com/p/e005302e9378</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[30-day-challenge]]></category>
            <dc:creator><![CDATA[Kester R.]]></dc:creator>
            <pubDate>Sun, 18 Aug 2024 18:04:41 GMT</pubDate>
            <atom:updated>2024-08-18T18:04:41.479Z</atom:updated>
            <content:encoded><![CDATA[<h4>30-Day Coding Challenge Extras</h4><h3>Makeup Day 4 — Challenge Completed!</h3><h4><a href="https://medium.com/trying-to-be-creative/road-to-100-95th-story-on-medium-c4559c8004e3">Countdown to 100 Stories</a>: ⏱️(1 story left)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*32Shszqt_mVfEoQREq16NA.png" /><figcaption>Photo by Author Via <a href="https://designer.microsoft.com/home">Microsoft Designer</a> &amp; <a href="https://www.canva.com/">Canva</a></figcaption></figure><p>It’s been almost a week since I completed my 30-day coding challenge. Unfortunately, I disappeared from Medium these past few days without writing my last report. So, here it is:</p><h4>Report for Makeup Day 4</h4><p>On my last makeup day for coding, I simply played around with functions, parameters,arguments, and the *args keyword.</p><p>Talking about the *args, it’s a keyword that allows a Python function to accept an unspecified number of arguments, like this:</p><pre>def my_function(*args):<br>    for arg in args:<br>        print(arg)<br><br>my_function(1, 2, 3, &#39;hello&#39;)<br><br>&#39;&#39;&#39;<br>OUTPUT:<br>1<br>2<br>3<br>hello<br>&#39;&#39;&#39;</pre><p>My makeup day 4 wasn’t action-packed as I didn’t discover anything new. Despite that, the fact I opened my IDE and wrote some functions made it a successful coding day.</p><p>With that, I can say:</p><blockquote>My 30-Day Coding Challenge is Completed!</blockquote><p>Here’s a summary of my journey:</p><ul><li>Day 1: <a href="https://medium.com/datascience-ville/day-1-planning-and-reviewing-a-random-word-generator-0acd1c0deb01?source=collection_home---4------1-----------------------">I planned and reviewed a random word generator</a></li><li>Day 2: <a href="https://medium.com/datascience-ville/day-2-improving-my-first-python-project-e4e3a2efe140">I improved my first Python project</a></li><li>Days 3 &amp; 4: <a href="https://medium.com/datascience-ville/day-3-day-4-not-enough-progress-bc496f2632b7">I Faced external factors that affected my progress</a></li><li>Day 5: <a href="https://medium.com/datascience-ville/day-5-reflections-operators-ab04860bba2a">Discovered the floor division operator</a></li><li>Day 6: <a href="https://medium.com/datascience-ville/day-6-discovering-methods-2329ec869e84">Discovered a string method</a></li><li>Days 7 &amp; 8: <a href="https://medium.com/datascience-ville/days-7-8-goofing-off-by-writing-2-scripts-e5caa9a55103">Goofing off by writing 2 scripts</a></li><li>Day 9: <a href="https://medium.com/datascience-ville/day-9-browsing-old-scripts-5e16432a555a">Looking at old scripts</a></li><li>Days 10 &amp; 11: <a href="https://medium.com/datascience-ville/days-10-11-setbacks-and-more-hacks-ill-rarely-use-7dfa8d7e9a71">I experienced my first setback</a></li><li>Days 12 &amp; 13: <a href="https://medium.com/datascience-ville/days-12-13-the-challenge-continues-08814db738ea">Discovered some escape characters</a></li><li>Days 14 &amp; 15: <a href="https://medium.com/datascience-ville/days-14-15-im-still-coding-0c287291ffb3">Highlight on slicing</a></li><li>Days 16 &amp; 17: <a href="https://medium.com/datascience-ville/days-16-17-can-i-know-every-hack-7cf16c76a166">More Python hacks</a></li><li>Days 18, 19, &amp; 20: <a href="https://medium.com/datascience-ville/days-18-19-20-set-and-setbacks-1763ab66bd67">Highlight on sets and setbacks</a></li><li>Days 21, 22, &amp; 23: <a href="https://medium.com/datascience-ville/days-21-22-23-exploring-bools-97e925312306">Highlight on bools</a></li><li>Days 24, 25, &amp; 26: <a href="https://medium.com/datascience-ville/days-24-25-26-match-case-and-illness-0abb1e878a92">Fell ill</a></li><li>Days 27, 28, &amp; 29: <a href="https://medium.com/datascience-ville/days-27-28-29-breaking-the-loop-688b49ab17ad">Highlight on break statement</a></li><li>Day 30: <a href="https://medium.com/datascience-ville/day-30-i-met-a-turtle-482b9596f483?source=collection_home---4------0-----------------------">I met a turtle</a></li><li>Makeup Days 1, 2, &amp; 3: <a href="https://medium.com/datascience-ville/makeup-days-1-2-3-wait-it-isnt-over-e0723dd57c37">Highlight on nested loops and ternary operator</a></li><li>Makeup Day 4: Highlight on *args keyword and summary of previous days.</li></ul><p>While I didn’t achieve as much as I wanted in my challenge, coding consistently for days really helped my progress and habit. Thanks to this, I have several hacks stored in my coding brain.</p><blockquote>My challenge may be over but my learning journey isn’t. Thanks for reading till this point and see you soon…</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e005302e9378" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datascience-ville/makeup-day-4-challenge-completed-e005302e9378">Makeup Day 4 — Challenge Completed!</a> was originally published in <a href="https://medium.com/datascience-ville">DSV Logs!</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Makeup Days 1, 2, & 3 — Wait, It isn’t Over?!]]></title>
            <link>https://medium.com/datascience-ville/makeup-days-1-2-3-wait-it-isnt-over-e0723dd57c37?source=rss----3d847c9b8cbe---4</link>
            <guid isPermaLink="false">https://medium.com/p/e0723dd57c37</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[30-day-challenge]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Kester R.]]></dc:creator>
            <pubDate>Mon, 12 Aug 2024 00:50:41 GMT</pubDate>
            <atom:updated>2024-08-12T00:50:41.681Z</atom:updated>
            <content:encoded><![CDATA[<h4>30-Day Coding Challenge Extras</h4><h3>Makeup Days 1, 2, &amp; 3 — Wait, It isn’t Over?!</h3><h4><a href="https://medium.com/trying-to-be-creative/road-to-100-95th-story-on-medium-c4559c8004e3">Countdown to 100 Stories</a>: ⏱️(2 stories left)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wB_bz4t8z8AllTCu35T1Mg.png" /><figcaption>Photo by Author Via <a href="https://designer.microsoft.com/home">Microsoft Designer</a> &amp; <a href="https://www.canva.com/">Canva</a></figcaption></figure><p>Today will mark the last makeup day of my coding challenge. Finally, I can see the finish line in sight. But yeah, my reports&#39; consistency has only worsened since last week.</p><p>Due to that, I’ll be reporting my activities for makeup days 1, 2, &amp; 3 here. Then my report for makeup day 4 (today) will come out tomorrow.</p><p>So, diving straight into the major highlights of makeup days 1 &amp; 2 — For Loops!</p><h4>Makeup Day 1 &amp; 2 Top Highlight: Nested For Loops</h4><p>For loops was one of the first things I learned in Python along with while loop. But unlike the while loop, it works only over an iterable (a collection of data) like lists, tuples, etc.</p><p>During my makeup days, I discovered the possibility of using multiple for loops in one statement i.e nested for loops. Here’s how it can work:</p><pre># The outer loop goes through each list inside the main list<br>for digit in [[5, 6, 7], [8, 9, 10]]:<br>    <br>    # The inner loop goes through each number in the sublists<br>    for digits in digit:<br>        <br>        # Print each number one by one<br>        print(digits)<br><br>&#39;&#39;&#39;<br>OUTPUT:<br>5<br>6<br>7<br>8<br>9<br>10<br>&#39;&#39;&#39;</pre><p>These past few days, I’ve discovered I can do much more with loops and conditional statements than I thought. And the one that beats everything else is the ternary operator.</p><h4>Makeup Day 3: Ternary Operator</h4><p>Basically, this is a different and simpler way of using the if statement in one line of code:</p><pre>x = 1<br>color = &#39;blue&#39; if x &lt; 5 else &#39;red&#39;<br>print(color)<br><br># OUTPUT: blue</pre><p>The logic behind this is pretty simple and can even be read like a normal English sentence:</p><blockquote>Color is “Blue” if x is less than five, else color is “Red”</blockquote><p>The downside of this method of writing if statements? It simply can’t be used for complex statements, or at least I don’t see any way it can.</p><blockquote>The last report of my current challenge approaches…</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0723dd57c37" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datascience-ville/makeup-days-1-2-3-wait-it-isnt-over-e0723dd57c37">Makeup Days 1, 2, &amp; 3 — Wait, It isn’t Over?!</a> was originally published in <a href="https://medium.com/datascience-ville">DSV Logs!</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 30 — I Met a Turtle!]]></title>
            <link>https://medium.com/datascience-ville/day-30-i-met-a-turtle-482b9596f483?source=rss----3d847c9b8cbe---4</link>
            <guid isPermaLink="false">https://medium.com/p/482b9596f483</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[30-day-challenge]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Kester R.]]></dc:creator>
            <pubDate>Wed, 07 Aug 2024 17:10:13 GMT</pubDate>
            <atom:updated>2024-08-07T17:19:22.714Z</atom:updated>
            <content:encoded><![CDATA[<h4>30-Day Coding Challenge</h4><h3>Day 30 — I Met a Turtle!</h3><h4><a href="https://medium.com/trying-to-be-creative/road-to-100-95th-story-on-medium-c4559c8004e3">Countdown to 100 Stories</a>: ⏱️(4 stories to go)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4NGWYzWzeJHximlbgr181w.png" /><figcaption>Photo by Author Via <a href="https://designer.microsoft.com/home">Microsoft Designer</a> &amp; <a href="https://www.canva.com/">Canva</a></figcaption></figure><p>Last month, I started this coding challenge to improve my productivity when it comes to both coding and writing.</p><p>Fast forward to day 30 and I didn’t feel up to it today.</p><p>But that’s when it hit me to break the monotony and do something way more fun than I’ve done these previous days. And I started by introducing myself to Mr. Turtle!</p><p>The Turtle is a Python module that allows you to create graphics and drawings. It provides a virtual canvas where you can control what we call a turtle that moves around the screen, drawing as it goes.</p><p>But while I didn’t go far learning the module (since I didn’t see a need for it soon), I at least understood how to duplicate the pattern on the <a href="https://docs.python.org/3.12/library/turtle.html">official documentation</a> to make a whole new image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*yPfCXZYlpcDseq4xeO2pEQ.png" /><figcaption>The pattern on Python’s official Turtle documentation</figcaption></figure><p>Here’s my duplicate:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Llav0xU6HrjQtxWz1qHxJA.png" /><figcaption>Image by Author from Python</figcaption></figure><p>And here’s my code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e4fdc756e6fd3df5596988b12b9cc90c/href">https://medium.com/media/e4fdc756e6fd3df5596988b12b9cc90c/href</a></iframe><p>Yeah, it’s pretty long. I spent more time on it than I realized.</p><p>The best part I love about this is the turtle’s movement when running on my IDE.</p><p>And above all, the feeling of having cracked the right distance needed to line them up side-by-side. I was amazed that I could figure out the distance between the last three patterns in one go.</p><p>And this is the beginning of my adventure with Mr. Turtle which I’ll continue embarking on during days like these when I don’t want to do any serious code. Yeah, go ahead and call it goofing off cause I really am 😊.</p><p>That said, it’ll probably take a while before I import the turtle in my script again since I really plan on focusing on modules related to data analytics.</p><p>There you have it, my day 30 report. But as you may know, this isn’t the end of my challenge. Here’s why:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vrT5iqEYBgP19wVvFVYkvg.png" /><figcaption>By Author via <a href="https://www.canva.com/">Canva</a></figcaption></figure><p>I missed 4 days, meaning I actually did 26 days of coding due to some reason or another.</p><p>I’m sad and mad. I’m sad-mad.</p><p>But it goes on. As I mentioned on day 10, for each day I miss, I get an extra day added to my challenge. This means there are four more days of coding left.</p><blockquote>And as I write this, only one of these four days has been completed. Three days left…</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=482b9596f483" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datascience-ville/day-30-i-met-a-turtle-482b9596f483">Day 30 — I Met a Turtle!</a> was originally published in <a href="https://medium.com/datascience-ville">DSV Logs!</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Days 27, 28, & 29 — Breaking the Loop]]></title>
            <link>https://medium.com/datascience-ville/days-27-28-29-breaking-the-loop-688b49ab17ad?source=rss----3d847c9b8cbe---4</link>
            <guid isPermaLink="false">https://medium.com/p/688b49ab17ad</guid>
            <category><![CDATA[30-day-challenge]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Kester R.]]></dc:creator>
            <pubDate>Sun, 04 Aug 2024 23:13:21 GMT</pubDate>
            <atom:updated>2024-08-04T23:14:31.824Z</atom:updated>
            <content:encoded><![CDATA[<h4>30-Day Coding Challenge</h4><h3>Days 27, 28, &amp; 29 — Breaking the Loop</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4ORhF08-jw7dPg21B6XF3Q.png" /><figcaption>Photo by Author Via <a href="https://designer.microsoft.com/home">Microsoft Designer</a> &amp; <a href="https://www.canva.com/">Canva</a></figcaption></figure><p>The last week of my coding challenge is approaching its end. And looking at my progress, I find myself lacking, especially these three days: <em>Days 27, 28, &amp; 29</em>.</p><p>I did the little I could on days 27 &amp; 28 before I broke down once more on day 29. It’s hard being sick.</p><p>But don’t worry, I’m determined to break the unproductive loop. And that brings me to the highlight of these three days, where I broke literal loops in Python via the break statement.</p><p>It’s used alongside loop statements like while,if, and for statements to break the loop (and I repeated this phrase🙂).</p><p>Here’s a basic but bad example of how this works:</p><pre>while True:<br>    print(&#39;Being Unproductive&#39;)<br>    break<br><br># OUTPUT: Being Unproductive</pre><p>Without the break statement, that would normally run forever and your entire memory would be unproductive, I guess?</p><p>I wondered why I didn’t know this sooner. It’s so useful to control the flow of code better.</p><p>The second, like it is continue.</p><p>Unlike break, it skips the rest of the code in a loop statement once the condition is met.</p><pre>for numbers in range(1, 8):<br>    if numbers == 5:<br>        continue  # It skips the rest of the loop body when numbers is 5<br>        print(&#39;hey&#39;) # This means hey won&#39;t appear in the Output<br>    <br>    print(numbers)<br><br>&#39;&#39;&#39;<br>OUTPUT:<br>1<br>2<br>3<br>4<br>6<br>7<br>&#39;&#39;&#39;</pre><p>These two statements are obviously going up into my archive as “<strong>essentials.</strong>”</p><blockquote>On day 30, I met a turtle…</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=688b49ab17ad" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datascience-ville/days-27-28-29-breaking-the-loop-688b49ab17ad">Days 27, 28, &amp; 29 — Breaking the Loop</a> was originally published in <a href="https://medium.com/datascience-ville">DSV Logs!</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Days 24, 25, & 26 — Match Case and Illness]]></title>
            <link>https://medium.com/datascience-ville/days-24-25-26-match-case-and-illness-0abb1e878a92?source=rss----3d847c9b8cbe---4</link>
            <guid isPermaLink="false">https://medium.com/p/0abb1e878a92</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[30-day-challenge]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Kester R.]]></dc:creator>
            <pubDate>Wed, 31 Jul 2024 23:06:02 GMT</pubDate>
            <atom:updated>2024-07-31T23:06:02.639Z</atom:updated>
            <content:encoded><![CDATA[<h4>30-Day Coding Challenge</h4><h3>Days 24, 25, &amp; 26 — Match Case and Illness</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pitggc08kjyKkAYRMdgl5A.png" /><figcaption>Photo by Author Via <a href="https://designer.microsoft.com/home">Microsoft Designer</a> &amp; <a href="https://www.canva.com/">Canva</a></figcaption></figure><p>3 more days have gone by. And I’m halfway into the 4th week of my challenge.</p><p>Days 24 and 25 were really fun days of coding and discovery. But yesterday (day 26), I fell sick.</p><p>While I hate having setbacks, there was nothing I could do. My PC remained closed all day.</p><p>I’m better but still feeling weird. You’ll always know when something’s wrong with your body functions.</p><p>Anyway, while I have the strength to do so, here’s my top highlight from days 24 &amp; 25 — Match Case Statements!</p><h4>Match Case</h4><p>It’s been a while since I’ve doubted the need for a function or method in Python. But I honestly felt that way about the Match Case statement.</p><p>After all, it works the same way as the if else statement. The only difference is the syntax:</p><pre>def describe_number(number):<br>    match number:<br>        case 1:<br>            return &quot;One&quot;<br>        case 2:<br>            return &quot;Two&quot;<br>        case 3:<br>            return &quot;Three&quot;<br>        case _:<br>            return &quot;Other number&quot;<br><br># OUTPUTS:<br>print(describe_number(1))  # Output: One<br>print(describe_number(4))  # Output: Other number</pre><p>Whereas, when written with if else, it’ll look like this:</p><pre>def describe_number(number):<br>    if number == 1:<br>        return &quot;One&quot;<br>    elif number == 2:<br>        return &quot;Two&quot;<br>    elif number == 3:<br>        return &quot;Three&quot;<br>    else:<br>        return &quot;Other number&quot;<br><br># OUTPUTS<br>print(describe_number(1))  # Output: One<br>print(describe_number(4))  # Output: Other number</pre><p>The difference? Well, other than currently being a good alternative to if else, I don’t see any difference in the way match case operates.</p><p>Although, I understand if some programmers find it better since it’s cleaner and more straightforward.</p><p>But I’ll be sticking to if else for now. And like I always do, I’m committing this to memory. Who knows when it’ll come in handy?</p><p>It’s day 27 and I haven’t done any coding yet. I hope to get at least a few things done before the day runs out.</p><blockquote>Thanks for reading, and see you in my next report…</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0abb1e878a92" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datascience-ville/days-24-25-26-match-case-and-illness-0abb1e878a92">Days 24, 25, &amp; 26 — Match Case and Illness</a> was originally published in <a href="https://medium.com/datascience-ville">DSV Logs!</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Days 21, 22, & 23 — Exploring Bools]]></title>
            <link>https://medium.com/datascience-ville/days-21-22-23-exploring-bools-97e925312306?source=rss----3d847c9b8cbe---4</link>
            <guid isPermaLink="false">https://medium.com/p/97e925312306</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[30-day-challenge]]></category>
            <dc:creator><![CDATA[Kester R.]]></dc:creator>
            <pubDate>Sun, 28 Jul 2024 15:28:15 GMT</pubDate>
            <atom:updated>2024-07-31T23:06:48.462Z</atom:updated>
            <content:encoded><![CDATA[<h4>30-Day Coding Challenge</h4><h3>Days 21, 22, &amp; 23 — Exploring Bools</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3p6qVQH8N5nZpBtThIzvWA.png" /><figcaption>Photo by Author Via <a href="https://designer.microsoft.com/home">Microsoft Designer</a> &amp; <a href="https://www.canva.com/">Canva</a></figcaption></figure><p>On days 21, 22 &amp; 23, I played around with bools.</p><p>When I first heard that term, I completely misspelled it as “bullian” (What in the world is that 😏?) instead of boolean and had no idea what it meant.</p><p>Life of a complete noob.</p><p>Time passed, and I’ve used this data type for some of my projects, especially along with the if, else, and elif statements.</p><p>But recently, I used the in operator for the first time.</p><p>Basically, it’s used to determine if a value is part of a collection of values (either strings, variables, lists, or tuples, which is pretty convenient).</p><p>Here’s how it can be used with a dictionary.</p><pre>e_dict = {1:&#39;one&#39;, 2:&#39;two&#39;, 3:&#39;three&#39;}<br><br>print(1 in e_dict) #checks if &#39;1&#39; is in e_dict<br>print(&#39;four&#39; in e_dict.values()) #checks if &#39;four&#39; is part of e_dict&#39;s values</pre><p>The outputs will be:</p><pre>print(1 in e_dict) #True<br>print(&#39;four&#39; in e_dict.values()) #False</pre><p>In contrast, the not in operator does the reverse of in. It checks if a value is not part of a collection of values.</p><pre>print(&#39;30&#39; not in &#39;30 Day Challenge&#39;)<br><br>#OUTPUT: False</pre><p>This, in addition to using the bool function and if statements are the top highlights of days 21–23 of my coding challenge.</p><blockquote>The last week of my challenge approaches…</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97e925312306" width="1" height="1" alt=""><hr><p><a href="https://medium.com/datascience-ville/days-21-22-23-exploring-bools-97e925312306">Days 21, 22, &amp; 23 — Exploring Bools</a> was originally published in <a href="https://medium.com/datascience-ville">DSV Logs!</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>