<?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:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[Daily Python Projects: Code Dictations]]></title><description><![CDATA[Code dictations are a very efficient way to memorize code syntax. How to do a dictation: Listen to the audio and try to type the code you hear in a code editor.  Then, compare your code with the correct code to see how accurate you were. 

You can save the dictations you complete by using the favorite icon located at the top of each page. Your saved pages can be found in your Substack inbox.]]></description><link>https://dailypythonprojects.substack.com/s/code-dictations</link><image><url>https://substackcdn.com/image/fetch/$s_!gfXP!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e0e0918-4155-47ff-ba5d-c061609cbc83_1000x1000.png</url><title>Daily Python Projects: Code Dictations</title><link>https://dailypythonprojects.substack.com/s/code-dictations</link></image><generator>Substack</generator><lastBuildDate>Wed, 10 Jun 2026 13:20:50 GMT</lastBuildDate><atom:link href="https://dailypythonprojects.substack.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Ardit Sulce]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[dailypythonprojects@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[dailypythonprojects@substack.com]]></itunes:email><itunes:name><![CDATA[Ardit Sulce]]></itunes:name></itunes:owner><itunes:author><![CDATA[Ardit Sulce]]></itunes:author><googleplay:owner><![CDATA[dailypythonprojects@substack.com]]></googleplay:owner><googleplay:email><![CDATA[dailypythonprojects@substack.com]]></googleplay:email><googleplay:author><![CDATA[Ardit Sulce]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[Text Adventure - Python Code Dictation]]></title><description><![CDATA[Level: Advanced &#128308;]]></description><link>https://dailypythonprojects.substack.com/p/text-adventure-python-code-dictation</link><guid isPermaLink="false">https://dailypythonprojects.substack.com/p/text-adventure-python-code-dictation</guid><dc:creator><![CDATA[Ardit Sulce]]></dc:creator><pubDate>Fri, 21 Mar 2025 23:12:14 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/28521f61-fb7e-4aa2-8520-ab88adfef842_2688x512.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[
      <p>
          <a href="https://dailypythonprojects.substack.com/p/text-adventure-python-code-dictation">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Creating a Contact Book - Python Code Dictation]]></title><description><![CDATA[Level: Advanced &#128308;]]></description><link>https://dailypythonprojects.substack.com/p/creating-a-contact-book-python-code</link><guid isPermaLink="false">https://dailypythonprojects.substack.com/p/creating-a-contact-book-python-code</guid><dc:creator><![CDATA[Ardit Sulce]]></dc:creator><pubDate>Fri, 21 Mar 2025 23:00:55 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/e5a68716-76a4-4233-8d7d-54c6fdacb365_2688x512.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[
      <p>
          <a href="https://dailypythonprojects.substack.com/p/creating-a-contact-book-python-code">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Simple Alarm Clock - Python Code Dictation]]></title><description><![CDATA[Level: Easy &#128993;]]></description><link>https://dailypythonprojects.substack.com/p/simple-alarm-clock-python-code-dictation</link><guid isPermaLink="false">https://dailypythonprojects.substack.com/p/simple-alarm-clock-python-code-dictation</guid><dc:creator><![CDATA[Ardit Sulce]]></dc:creator><pubDate>Fri, 21 Mar 2025 22:50:53 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/159585561/326cbd91294e77bb008f89647226a3e1.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<h3>What is this post about?</h3><p>This is an audio code dictation to help learners memorize Python syntax. Follow these steps to complete a dictation: </p><ol><li><p><em>Open a code editor on your computer.</em></p></li><li><p><em>Play the audio and type the narrated code while listening.</em></p></li><li><p><em>Compare your code with the correct code below.</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!_zA5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!_zA5!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 424w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 848w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1272w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!_zA5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png" width="1400" height="1400" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1400,&quot;width&quot;:1400,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:681370,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!_zA5!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 424w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 848w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1272w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></li></ol><p>  </p><p></p><h3>Correct Code</h3><pre><code>import time

def set_alarm(hours, minutes):
    print("Alarm set for", hours, minutes)
    current_time = time.localtime()
    while current_time.tm_hour != hours or current_time.tm_min != minutes:
        current_time = time.localtime()
        time.sleep(30)
    print("Time's up! Wake up!")

set_alarm(6, 30)</code></pre><p><a href="https://dailypythonprojects.substack.com/s/code-dictations">Explore More Dictations  </a></p>]]></content:encoded></item><item><title><![CDATA[This Week's Python Code Dictations]]></title><link>https://dailypythonprojects.substack.com/p/this-weeks-python-code-dictations-0e8</link><guid isPermaLink="false">https://dailypythonprojects.substack.com/p/this-weeks-python-code-dictations-0e8</guid><pubDate>Fri, 14 Mar 2025 15:03:37 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/668a36e3-67bf-4a3f-8585-a47058719f43_1145x218.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Hi everyone!</p><p>Time to practice some Python the fun way - through our Python Code Dictations. We have three brand new dictations published just today. </p><h2><strong><a href="https://dailypythonprojects.substack.com/p/number-guessing-game-python-code-5c8">Number Guessing Game - Python Code Dictation</a></strong></h2><p>Level: Easy &#128993;</p><h2><strong><a href="https://dailypythonprojects.substack.com/p/building-a-simple-calculator-python">Building a Simple Calculator - Python Code Dictation</a></strong></h2><p>Level: Advanced &#128308;</p><h2><strong><a href="https://dailypythonprojects.substack.com/p/simple-shopping-cart-python-code">Simple Shopping Cart - Python Code Dictation</a></strong></h2><p>Level: Advanced &#128308;</p><p>Simply listen to a dictation, try to type in the code you hear in the audio, and then compare your code to see how you did. Happy coding!</p><p>Have a great weekend!</p><p>Daily Python Projects Team</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://dailypythonprojects.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Daily Python Projects is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Number Guessing Game - Python Code Dictation]]></title><description><![CDATA[Level: Easy &#128993;]]></description><link>https://dailypythonprojects.substack.com/p/number-guessing-game-python-code-5c8</link><guid isPermaLink="false">https://dailypythonprojects.substack.com/p/number-guessing-game-python-code-5c8</guid><pubDate>Fri, 14 Mar 2025 14:55:46 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/158814113/ad5120bd51bdc9e3d5408a9f6e5bf751.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<h3>What is this post about?</h3><p>This is an audio code dictation to help learners memorize Python syntax. Follow these steps to complete a dictation: </p><ol><li><p><em>Open a code editor on your computer.</em></p></li><li><p><em>Play the audio and type the narrated code while listening.</em></p></li><li><p><em>Compare your code with the correct code below.</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!_zA5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!_zA5!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 424w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 848w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1272w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!_zA5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png" width="1400" height="1400" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1400,&quot;width&quot;:1400,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:681370,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!_zA5!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 424w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 848w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1272w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></li></ol><p>  </p><p></p><h3>Correct Code</h3><pre><code>import random

# Generate a random number between 1 and 10
secret_number = random.randint(1, 10)

# Give the player 3 chances to guess the number
attempts = 3
while attempts &gt; 0:
    guess = int(input("Guess the number (between 1 and 10): "))
    
    if guess == secret_number:
        print("Congratulations! You guessed it right.")
        break
    elif guess &lt; secret_number:
        print("Too low! Try again.")
    else:
        print("Too high! Try again.")
    
    attempts -= 1

if attempts == 0:
    print(f"Sorry, the secret number was {secret_number}.")</code></pre><p><a href="https://dailypythonprojects.substack.com/s/code-dictations">Explore More Dictations  </a></p>]]></content:encoded></item><item><title><![CDATA[Building a Simple Calculator - Python Code Dictation]]></title><description><![CDATA[Level: Advanced &#128308;]]></description><link>https://dailypythonprojects.substack.com/p/building-a-simple-calculator-python</link><guid isPermaLink="false">https://dailypythonprojects.substack.com/p/building-a-simple-calculator-python</guid><pubDate>Fri, 14 Mar 2025 14:55:44 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/87531666-c672-46da-a49d-3c3181cea2d2_2688x512.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[
      <p>
          <a href="https://dailypythonprojects.substack.com/p/building-a-simple-calculator-python">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Simple Shopping Cart - Python Code Dictation]]></title><description><![CDATA[Level: Advanced &#128308;]]></description><link>https://dailypythonprojects.substack.com/p/simple-shopping-cart-python-code</link><guid isPermaLink="false">https://dailypythonprojects.substack.com/p/simple-shopping-cart-python-code</guid><pubDate>Fri, 14 Mar 2025 14:55:43 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/7a354231-01e7-427e-b965-3edf81549bd1_2688x512.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[
      <p>
          <a href="https://dailypythonprojects.substack.com/p/simple-shopping-cart-python-code">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Combining Two Lists Into One - Python Code Dictation]]></title><description><![CDATA[Level: Advanced &#128308;]]></description><link>https://dailypythonprojects.substack.com/p/combining-two-lists-into-one-python</link><guid isPermaLink="false">https://dailypythonprojects.substack.com/p/combining-two-lists-into-one-python</guid><pubDate>Fri, 07 Mar 2025 15:06:48 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/04129a6b-4f69-4bc1-b846-771766a000af_2688x512.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[
      <p>
          <a href="https://dailypythonprojects.substack.com/p/combining-two-lists-into-one-python">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Extracting the First Letters of Names - Python Code Dictation]]></title><description><![CDATA[Level: Advanced &#128308;]]></description><link>https://dailypythonprojects.substack.com/p/extracting-the-first-letters-of-names</link><guid isPermaLink="false">https://dailypythonprojects.substack.com/p/extracting-the-first-letters-of-names</guid><pubDate>Fri, 07 Mar 2025 15:04:47 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/76fa6ea8-a7af-4e20-a4d2-54a067e54136_2688x512.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[
      <p>
          <a href="https://dailypythonprojects.substack.com/p/extracting-the-first-letters-of-names">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Finding the Length of Each Word in a Sentence with a For-Loop - Python Code Dictation]]></title><description><![CDATA[Level: Easy &#128993;]]></description><link>https://dailypythonprojects.substack.com/p/finding-the-length-of-each-word-in</link><guid isPermaLink="false">https://dailypythonprojects.substack.com/p/finding-the-length-of-each-word-in</guid><pubDate>Fri, 07 Mar 2025 15:03:29 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/157950514/4564836790dd44a5ba173014e387a698.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<h3>What is this post about?</h3><p>This is an audio code dictation to help learners memorize Python syntax. Follow these steps to complete a dictation: </p><ol><li><p><em>Open a code editor on your computer.</em></p></li><li><p><em>Play the audio and type the narrated code while listening.</em></p></li><li><p><em>Compare your code with the correct code below.</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!_zA5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!_zA5!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 424w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 848w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1272w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!_zA5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png" width="1400" height="1400" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1400,&quot;width&quot;:1400,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:681370,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!_zA5!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 424w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 848w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1272w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></li></ol><p>  </p><p></p><h3>Correct Code</h3><pre><code>sentence = "The weather is good"
words = sentence.split()

word_lengths = []
for word in words:
    word_lengths.append(len(word))

print(sentence)
print(words)
print(word_lengths)</code></pre><p><a href="https://dailypythonprojects.substack.com/s/code-dictations">Explore More Dictations  </a></p>]]></content:encoded></item><item><title><![CDATA[Creating a Shopping List - Python Code Dictation]]></title><description><![CDATA[Listen now | Level: Advanced &#128308;]]></description><link>https://dailypythonprojects.substack.com/p/creating-a-shopping-list-python-code</link><guid isPermaLink="false">https://dailypythonprojects.substack.com/p/creating-a-shopping-list-python-code</guid><pubDate>Fri, 28 Feb 2025 15:31:11 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/212541a7-6c59-4b0f-8727-d1cdba5762a5_2688x512.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[
      <p>
          <a href="https://dailypythonprojects.substack.com/p/creating-a-shopping-list-python-code">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Swapping First and Last Items - Python Code Dictaton]]></title><description><![CDATA[Listen now | Level: Advanced &#128308;]]></description><link>https://dailypythonprojects.substack.com/p/swapping-first-and-last-items-python</link><guid isPermaLink="false">https://dailypythonprojects.substack.com/p/swapping-first-and-last-items-python</guid><pubDate>Fri, 28 Feb 2025 15:29:52 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/31aefc83-6748-490e-bab1-aab38a9b2dfe_2688x512.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[
      <p>
          <a href="https://dailypythonprojects.substack.com/p/swapping-first-and-last-items-python">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Doubling Numbers in a List - Python Code Dictation]]></title><description><![CDATA[Listen now | Level: Easy &#128993;]]></description><link>https://dailypythonprojects.substack.com/p/doubling-numbers-in-a-list-python</link><guid isPermaLink="false">https://dailypythonprojects.substack.com/p/doubling-numbers-in-a-list-python</guid><pubDate>Fri, 28 Feb 2025 15:29:52 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/157949430/3342b6b5549229ca3202445952e8080e.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<h3>What is this post about?</h3><p>This is an audio code dictation to help learners memorize Python syntax. Follow these steps to complete a dictation: </p><ol><li><p><em>Open a code editor on your computer.</em></p></li><li><p><em>Play the audio and type the narrated code while listening.</em></p></li><li><p><em>Compare your code with the correct code below.</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!_zA5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!_zA5!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 424w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 848w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1272w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!_zA5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png" width="1400" height="1400" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1400,&quot;width&quot;:1400,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:681370,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!_zA5!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 424w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 848w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1272w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></li></ol><p>  </p><p></p><h3>Correct Code</h3><pre><code>numbers = [1, 2, 3, 4]
doubled_numbers = []

doubled_numbers.append(numbers[0] * 2)
doubled_numbers.append(numbers[1] * 2)
doubled_numbers.append(numbers[2] * 2)
doubled_numbers.append(numbers[3] * 2)

print("Original numbers", numbers)
print("Doubled numbers", doubled_numbers)</code></pre><p><a href="https://dailypythonprojects.substack.com/s/code-dictations">Explore More Dictations  </a></p>]]></content:encoded></item><item><title><![CDATA[Removing Duplicates - Python Code Dictation]]></title><description><![CDATA[Listen now | Level: Advanced &#128308;]]></description><link>https://dailypythonprojects.substack.com/p/removing-duplicates-python-code-dictation</link><guid isPermaLink="false">https://dailypythonprojects.substack.com/p/removing-duplicates-python-code-dictation</guid><pubDate>Fri, 21 Feb 2025 17:33:29 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/9ec73f20-2ca5-4416-a186-0cefda906083_2688x512.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[
      <p>
          <a href="https://dailypythonprojects.substack.com/p/removing-duplicates-python-code-dictation">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Word Lengths in a Sentence - Python Code Dictation]]></title><description><![CDATA[Listen now | Level: Advanced &#128308;]]></description><link>https://dailypythonprojects.substack.com/p/word-lengths-in-a-sentence-python</link><guid isPermaLink="false">https://dailypythonprojects.substack.com/p/word-lengths-in-a-sentence-python</guid><pubDate>Fri, 21 Feb 2025 17:29:54 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/fe7acb9a-605a-4c26-a79f-a2985ff14c42_2688x512.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[
      <p>
          <a href="https://dailypythonprojects.substack.com/p/word-lengths-in-a-sentence-python">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Expanding List of Colors - Python Code Dictation]]></title><description><![CDATA[Level: Easy &#128993;]]></description><link>https://dailypythonprojects.substack.com/p/python-code-dictation</link><guid isPermaLink="false">https://dailypythonprojects.substack.com/p/python-code-dictation</guid><pubDate>Fri, 21 Feb 2025 17:22:54 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/157631513/0e4e2bf4ed16bd99bf6eedafd66a80e0.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<h3>What is this post about?</h3><p>This is an audio code dictation to help learners memorize Python syntax. Follow these steps to complete a dictation: </p><ol><li><p><em>Open a code editor on your computer.</em></p></li><li><p><em>Play the audio and type the narrated code while listening.</em></p></li><li><p><em>Compare your code with the correct code below.</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!_zA5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!_zA5!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 424w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 848w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1272w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!_zA5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png" width="1400" height="1400" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1400,&quot;width&quot;:1400,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:681370,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!_zA5!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 424w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 848w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1272w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></li></ol><p>  </p><p></p><h3>Correct Code</h3><pre><code>colors = ["red", "blue"]
colors.append("green")
colors.append("yellow")

# Show the updated list
print("Initial colors:", ["red", "blue"])
print("Updated colors:", colors)

# Show the number of colors
color_count = len(colors)
print("Total number of colors:", color_count)</code></pre><p><a href="https://dailypythonprojects.substack.com/s/code-dictations">Explore More Dictations  </a></p>]]></content:encoded></item><item><title><![CDATA[Palindrome Checker - Python Code Dictation]]></title><description><![CDATA[Level: Advanced &#128308;]]></description><link>https://dailypythonprojects.substack.com/p/palindrome-checker-python-code-dictation</link><guid isPermaLink="false">https://dailypythonprojects.substack.com/p/palindrome-checker-python-code-dictation</guid><pubDate>Fri, 14 Feb 2025 15:03:33 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/250966ab-1808-4d12-84e7-6b7ddb8743dc_2688x512.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[
      <p>
          <a href="https://dailypythonprojects.substack.com/p/palindrome-checker-python-code-dictation">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Fibonacci Sequence Generator - Python Code Dictation]]></title><description><![CDATA[Listen now | Level: Advanced &#128308;]]></description><link>https://dailypythonprojects.substack.com/p/fibonacci-sequence-generator-python</link><guid isPermaLink="false">https://dailypythonprojects.substack.com/p/fibonacci-sequence-generator-python</guid><pubDate>Fri, 14 Feb 2025 15:03:22 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/29918555-d026-4e12-894a-75abd80bc816_2688x512.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[
      <p>
          <a href="https://dailypythonprojects.substack.com/p/fibonacci-sequence-generator-python">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[Number Guessing Game - Python Code Dictation]]></title><description><![CDATA[Level: Easy &#128993;]]></description><link>https://dailypythonprojects.substack.com/p/number-guessing-game-python-code</link><guid isPermaLink="false">https://dailypythonprojects.substack.com/p/number-guessing-game-python-code</guid><pubDate>Fri, 14 Feb 2025 15:02:39 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/156850366/7a58569202fb804f016b463df34eb0ad.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<h3>What is this post about?</h3><p>This is an audio code dictation to help learners memorize Python syntax. Follow these steps to complete a dictation: </p><ol><li><p><em>Open a code editor on your computer.</em></p></li><li><p><em>Play the audio and type the narrated code while listening.</em></p></li><li><p><em>Compare your code with the correct code below.</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!_zA5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!_zA5!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 424w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 848w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1272w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!_zA5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png" width="1400" height="1400" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1400,&quot;width&quot;:1400,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:681370,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!_zA5!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 424w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 848w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1272w, https://substackcdn.com/image/fetch/$s_!_zA5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17218f2a-4b7c-4325-8609-39ae439b3248_1400x1400.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></li></ol><p>  </p><p>  </p><h3>Correct Code</h3><pre><code><code>import random

target_number = random.randint(1, 10)

guess = int(input("Guess the number (between 1 and 10): "))

 if guess == target_number:
    print("Congratulations! You guessed the right number.")
else:
    print(f"Sorry, the correct number was {target_number}.")</code></code></pre>]]></content:encoded></item><item><title><![CDATA[Finding the Maximum Number in a List - Python Code Dictation]]></title><description><![CDATA[Listen now | Level: Advanced &#128308;]]></description><link>https://dailypythonprojects.substack.com/p/finding-the-maximum-number-in-a-list</link><guid isPermaLink="false">https://dailypythonprojects.substack.com/p/finding-the-maximum-number-in-a-list</guid><pubDate>Fri, 07 Feb 2025 15:02:30 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/d02685f4-88c1-4297-bb45-939f9e0f694b_2688x512.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[
      <p>
          <a href="https://dailypythonprojects.substack.com/p/finding-the-maximum-number-in-a-list">
              Read more
          </a>
      </p>
   ]]></content:encoded></item></channel></rss>