<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Bonface Thuo</title>
    <description>The latest articles on DEV Community by Bonface Thuo (@alpha3020).</description>
    <link>https://dev.to/alpha3020</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3951874%2Fa3be242c-84fe-4f1b-8336-8073d05b8446.jpg</url>
      <title>DEV Community: Bonface Thuo</title>
      <link>https://dev.to/alpha3020</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alpha3020"/>
    <language>en</language>
    <item>
      <title>🔀 DAY 10: Logical Operators</title>
      <dc:creator>Bonface Thuo</dc:creator>
      <pubDate>Sat, 06 Jun 2026 19:39:49 +0000</pubDate>
      <link>https://dev.to/alpha3020/day-10-logical-operators-10hi</link>
      <guid>https://dev.to/alpha3020/day-10-logical-operators-10hi</guid>
      <description>&lt;p&gt;Welcome to Day 10, squad! 🚀 Yesterday, we learned how to check single conditions, like whether a user is logged in. But in the real world, decisions are rarely that simple.&lt;/p&gt;

&lt;p&gt;Think about a streaming app like Netflix. To play a premium movie, a user needs to be logged in AND they must have an active paid subscription. If they only have one of those things, access is denied!❌&lt;/p&gt;

&lt;p&gt;Today, we are learning how to chain multiple comparisons together using Python's gatekeepers: Logical Operators.&lt;/p&gt;

&lt;h1&gt;
  
  
  🚪 Meet the Three Gatekeepers: and, or, not
&lt;/h1&gt;

&lt;p&gt;Python uses clean, simple English words to handle logic gating:&lt;/p&gt;

&lt;h1&gt;
  
  
  1. The Strict Gatekeeper: and
&lt;/h1&gt;

&lt;p&gt;The and operator only returns True if every single condition on both sides is perfectly true. If even one part is false, the whole thing collapses into False.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;has_email&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;
&lt;span class="n"&gt;has_password&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;has_email&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;has_password&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# Prints: False (Missing password!)
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  2. The Relaxed Gatekeeper: or
&lt;/h1&gt;

&lt;p&gt;The or operator is super chill. It returns True if at least one of the conditions is true. It only outputs False if absolutely everything is broken.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;has_cash&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;
&lt;span class="n"&gt;has_credit_card&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;has_cash&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;has_credit_card&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# Prints: True (We can still pay! 💳)
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  3. The Rebel: not
&lt;/h1&gt;

&lt;p&gt;The not operator is a simple inverter. It flips whatever Boolean value comes after it completely upside down. It turns True to False, and False to True.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;is_game_over&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;is_game_over&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# Prints: True
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  🚀 Today's Challenge 🏆
&lt;/h1&gt;

&lt;p&gt;Let's build a gate for an online shop checkout system!&lt;/p&gt;

&lt;p&gt;Create a boolean item_in_stock = True.&lt;/p&gt;

&lt;p&gt;Create a boolean wallet_loaded = False.&lt;/p&gt;

&lt;p&gt;Create a boolean has_discount_coupon = True.&lt;/p&gt;

&lt;p&gt;Write a logical statement to check if a user can buy the item. They can buy it if item_in_stock is true AND either (wallet_loaded is true OR has_discount_coupon is true).&lt;/p&gt;

&lt;p&gt;Print out your final result.&lt;/p&gt;

&lt;p&gt;Did your checkout process succeed? Let me know in the comments! Tomorrow, we finally make our scripts dynamic using If/Else Conditional Statements! 🛣️&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>⚖️ DAY 9: Comparison Operators</title>
      <dc:creator>Bonface Thuo</dc:creator>
      <pubDate>Sat, 06 Jun 2026 19:37:11 +0000</pubDate>
      <link>https://dev.to/alpha3020/day-9-comparison-operators-2phd</link>
      <guid>https://dev.to/alpha3020/day-9-comparison-operators-2phd</guid>
      <description>&lt;p&gt;Hey players! 👋 Welcome to Day 9. Up until now, our scripts have been a one-way street—Python just runs line 1, then line 2, then line 3. But real programming requires making decisions.&lt;/p&gt;

&lt;p&gt;Is the user's password correct? Is the player's health less than or equal to 0? Is their age over 18?&lt;/p&gt;

&lt;p&gt;Before our code can make decisions, it needs to learn how to compare things. Comparison operators look at two pieces of data and output a pure Boolean: True or False. Let's meet the operators! ⚖️&lt;/p&gt;

&lt;h1&gt;
  
  
  ⚖️ The Comparison Lineup
&lt;/h1&gt;

&lt;p&gt;Here are the six basic symbols you'll use to compare values in Python:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqt0zulcbs1ogrhhn3mzj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqt0zulcbs1ogrhhn3mzj.png" alt=" " width="800" height="345"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;
  
  
  ⚠️ The Absolute Biggest Beginner Pitfall
&lt;/h1&gt;

&lt;p&gt;Look closely at the "Equal to" symbol: ==.&lt;/p&gt;

&lt;p&gt;A single equals sign (=) is used to assign a value to a box (e.g., score = 100).&lt;/p&gt;

&lt;p&gt;A double equals sign (==) is used to ask a question (e.g., "Is the score equal to 100?").&lt;/p&gt;

&lt;p&gt;Using = when you meant to use == is an absolute rite of passage error that will cause Python to throw a dramatic syntax fit. Keep your eyes peeled!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;my_score&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;45&lt;/span&gt;
&lt;span class="n"&gt;winning_score&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;

&lt;span class="c1"&gt;# Checking if we won yet 🏆
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;my_score&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;winning_score&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# Prints: False
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;my_score&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="n"&gt;winning_score&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# Prints: True
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  🚀 Today's Challenge 🏆
&lt;/h1&gt;

&lt;p&gt;Create a variable called required_height = 150.&lt;/p&gt;

&lt;p&gt;Create another variable called rider_height = 165.&lt;/p&gt;

&lt;p&gt;Use a comparison operator to check if the rider is tall enough to ride the roller coaster (i.e., rider_height is greater than or equal to required_height).&lt;/p&gt;

&lt;p&gt;Print the result and make sure it says True!&lt;/p&gt;

&lt;p&gt;Tell me if your rider passed the height check in the comments! Tomorrow, we combine multiple conditions using Logical Operators! 🔀&lt;/p&gt;

</description>
    </item>
    <item>
      <title>➕ DAY 8: Arithmetic Operators</title>
      <dc:creator>Bonface Thuo</dc:creator>
      <pubDate>Sat, 06 Jun 2026 19:30:42 +0000</pubDate>
      <link>https://dev.to/alpha3020/day-8-arithmetic-operators-27d0</link>
      <guid>https://dev.to/alpha3020/day-8-arithmetic-operators-27d0</guid>
      <description>&lt;p&gt;Welcome back, coding crew! 🚀 Today, we are turning Python into the most overpowered pocket calculator you’ve ever seen.&lt;/p&gt;

&lt;p&gt;Whether you’re calculating score multipliers in a video game, adding sales tax to an e-commerce shopping cart, or computing data averages, you need Arithmetic Operators.&lt;/p&gt;

&lt;p&gt;You already know the basics from grade school math, but Python has a few secret mathematical superpowers hidden up its sleeve. Let's look at them! 🔢&lt;/p&gt;

&lt;h1&gt;
  
  
  🧱 The Standard Four
&lt;/h1&gt;

&lt;p&gt;Addition (+), Subtraction (-), Multiplication (*), and Division (/) work exactly how you’d expect:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# Addition -&amp;gt; 15
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# Subtraction -&amp;gt; 5
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# Multiplication -&amp;gt; 50
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# Division -&amp;gt; 2.0
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;💡 Pro-Tip: Did you notice that 10 / 5 gave us 2.0 instead of a whole number 2? In Python, standard division always returns a float, even if it divides perfectly!&lt;/em&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  🚀 The Python Math Superpowers
&lt;/h1&gt;

&lt;p&gt;Now for the fun stuff that they didn't teach you in standard calculator class:&lt;/p&gt;

&lt;h1&gt;
  
  
  1. Exponents ()
&lt;/h1&gt;

&lt;p&gt;Want to calculate exponents (powers)? Use two asterisks!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# Meaning: 2 cubed (2 * 2 * 2) -&amp;gt; 8
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  2. Floor Division (//)
&lt;/h1&gt;

&lt;p&gt;Want to divide numbers but completely chop off the decimal part to get a clean whole number integer? Use double slashes!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;11&lt;/span&gt; &lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# 3 goes into 11 three times... -&amp;gt; 3
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  3. Modulo (%)
&lt;/h1&gt;

&lt;p&gt;This is the ultimate programmer favorite. Modulo divides the first number by the second number and returns only the leftover remainder.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;11&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# 11 divided by 3 leaves a remainder of -&amp;gt; 2
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Why is Modulo useful? If any_number % 2 gives you 0, you instantly know the number is even! If it leaves a 1, it's odd! 🤯&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;🚀 Today's Challenge 🏆&lt;br&gt;
Create a variable called total_cookies = 23.&lt;/p&gt;

&lt;p&gt;You have 4 friends. Use floor division (//) to find out how many whole cookies each friend gets.&lt;/p&gt;

&lt;p&gt;Use Modulo (%) to find out how many leftover cookies you get to keep for yourself!&lt;/p&gt;

&lt;p&gt;Print both results with clean labels.&lt;/p&gt;

&lt;p&gt;Let me know how many cookies you kept in the comments! Tomorrow, we learn how to make our code compare values using Comparison Operators! ⚖️&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>🎟️ DAY 6: Sets</title>
      <dc:creator>Bonface Thuo</dc:creator>
      <pubDate>Sat, 06 Jun 2026 19:26:39 +0000</pubDate>
      <link>https://dev.to/alpha3020/day-6-sets-ka4</link>
      <guid>https://dev.to/alpha3020/day-6-sets-ka4</guid>
      <description>&lt;p&gt;Welcome back to Day 6! 🚀 We’ve looked at lists, tuples, and dictionaries. By now, you’re practically a data hoarder. But what happens when you have a list of user sign-ups, and because of a system glitch, "JohnDoe123" accidentally signed up four different times?&lt;/p&gt;

&lt;p&gt;If you leave those duplicates in your database, your analytics are going to be completely ruined. You need a data structure that acts like a strict VIP nightclub bouncer no duplicates allowed, and no specific order guaranteed.&lt;/p&gt;

&lt;p&gt;Enter Sets! 🎟️🛑&lt;/p&gt;

&lt;h1&gt;
  
  
  🎟️ What is a Set?
&lt;/h1&gt;

&lt;p&gt;A Set is an unordered collection of unique items. This means two things:&lt;/p&gt;

&lt;p&gt;No Duplicates: If you try to add the same thing twice, the set quietly deletes the duplicate.&lt;/p&gt;

&lt;p&gt;No Order: Items float around randomly inside. Because there is no order, sets do not have indices! You cannot use [0] to get the first item.&lt;/p&gt;

&lt;p&gt;To create a set, you use curly braces {} (just like dictionaries, but without the colons and keys!):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# A list of server logs with annoying duplicates 📑
&lt;/span&gt;&lt;span class="n"&gt;raw_usernames&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;mario&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;luigi&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;mario&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;bowser&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;luigi&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;raw_usernames&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# Prints: {'mario', 'luigi', 'bowser'} (Magic! The duplicates vanished!)
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  🛠️ Modifying a Set
&lt;/h1&gt;

&lt;p&gt;Because sets don't use indices, we use dedicated built-in methods to add or drop items from our collection:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;game_lobby&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;player_one&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;player_two&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;# 1. Adding an item ➕
&lt;/span&gt;&lt;span class="n"&gt;game_lobby&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;player_three&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# 2. Trying to add a duplicate (Python will just ignore this)
&lt;/span&gt;&lt;span class="n"&gt;game_lobby&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;player_one&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; 

&lt;span class="c1"&gt;# 3. Removing an item ❌
&lt;/span&gt;&lt;span class="n"&gt;game_lobby&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;remove&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;player_two&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;game_lobby&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  🚀 Today's Challenge 🏆
&lt;/h1&gt;

&lt;p&gt;Create a set named backpack_items containing a few duplicates (e.g., {"apple", "potion", "apple", "shield"}).&lt;/p&gt;

&lt;p&gt;Print the set to confirm the duplicate item was automatically vaporized.&lt;/p&gt;

&lt;p&gt;Use .add() to add a "map" to your set.&lt;/p&gt;

&lt;p&gt;Try printing backpack_items[0] and watch Python throw a spectacular TypeError. (Remember: No indices allowed in the set club!). Comment it out so your code runs clean.&lt;/p&gt;

&lt;p&gt;Show me your duplicate-free sets in the comments! Tomorrow, we learn how to write secret notes in our code using Comments! 📝&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>computerscience</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>🏷️ DAY 5: Dictionaries</title>
      <dc:creator>Bonface Thuo</dc:creator>
      <pubDate>Sat, 06 Jun 2026 19:23:32 +0000</pubDate>
      <link>https://dev.to/alpha3020/day-5-dictionaries-1nm4</link>
      <guid>https://dev.to/alpha3020/day-5-dictionaries-1nm4</guid>
      <description>&lt;p&gt;Welcome back, Pythonistas! 🚀 For the last two days, we’ve been using indices like 0, 1, and 2 to grab items out of our lists and tuples. But let’s be real—if you’re building an RPG game and want to find a character's "stamina", nobody wants to guess whether that's stored at index 4 or index 7.&lt;/p&gt;

&lt;p&gt;Today, we are throwing numerical indices out the window and upgrading to custom labels. Imagine a massive chest of drawers where you get to write the labels on the outside yourself.&lt;/p&gt;

&lt;p&gt;Enter Dictionaries! 🏷️📖&lt;/p&gt;

&lt;h1&gt;
  
  
  📖 What is a Dictionary?
&lt;/h1&gt;

&lt;p&gt;In Python, a Dictionary is a collection of key-value pairs. Instead of looking up items by a number, you look them up using a unique word (the Key) to get the data attached to it (the Value).&lt;/p&gt;

&lt;p&gt;To make a dictionary, we use curly braces {}, and we separate keys and values with a colon :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Creating our character's stat sheet 🎮
&lt;/span&gt;&lt;span class="n"&gt;character&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;name&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Anya&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;role&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Mage&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;level&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;14&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;is_premium&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;character&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  🔍 Reading data with Custom Labels
&lt;/h1&gt;

&lt;p&gt;To pull data out, you use the exact same square bracket setup we used for lists, but instead of a number, you pass in the exact string key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Checking Anya's role
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;character&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;role&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;  &lt;span class="c1"&gt;# Prints: Mage
&lt;/span&gt;
&lt;span class="c1"&gt;# Checking Anya's level
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;character&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;level&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;  &lt;span class="c1"&gt;# Prints: 14
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;⚠️ Tantrum Alert: Python keys are case-sensitive! If you try to look up character["Role"] with a capital R, Python will throw a KeyError and pretend it has never seen that data in its life.&lt;/em&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  🛠️ Modifying the Chest of Drawers
&lt;/h1&gt;

&lt;p&gt;Dictionaries are completely mutable (flexible). You can change values, add new drawers, or rip drawers out completely.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# 1. Updating a value (Anya leveled up! 🎉)
&lt;/span&gt;&lt;span class="n"&gt;character&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;level&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;

&lt;span class="c1"&gt;# 2. Adding a brand new key-value pair
&lt;/span&gt;&lt;span class="n"&gt;character&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;weapon&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Crystal Staff&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;

&lt;span class="c1"&gt;# 3. Deleting a key-value pair 🗑️
&lt;/span&gt;&lt;span class="k"&gt;del&lt;/span&gt; &lt;span class="n"&gt;character&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;is_premium&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;character&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# Output: {'name': 'Anya', 'role': 'Mage', 'level': 15, 'weapon': 'Crystal Staff'}
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🚀 Today's Challenge 🏆&lt;br&gt;
Create a dictionary called my_car with the keys: brand, model, and year.&lt;/p&gt;

&lt;p&gt;Print out the model of your car.&lt;/p&gt;

&lt;p&gt;Update the year to a newer one (or change it to a hovercar from the future 🚀).&lt;/p&gt;

&lt;p&gt;Add a new key called color and give it a value.&lt;/p&gt;

&lt;p&gt;Drop your custom dictionary in the comments below! Tomorrow, we are finishing our core data structures by looking at Sets—the ultimate bouncers of the Python world! 🎟️&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Python Day Four – Tuples, Lockboxes, and Data That Won't Budge 🔒</title>
      <dc:creator>Bonface Thuo</dc:creator>
      <pubDate>Tue, 02 Jun 2026 07:52:48 +0000</pubDate>
      <link>https://dev.to/alpha3020/python-day-four-tuples-lockboxes-and-data-that-wont-budge-2622</link>
      <guid>https://dev.to/alpha3020/python-day-four-tuples-lockboxes-and-data-that-wont-budge-2622</guid>
      <description>&lt;p&gt;Welcome back, Python crew! 🚀 On Day 3, we packed our virtual backpacks with &lt;a href="https://dev.to/alpha3020/python-day-three-lists-indices-and-packing-your-virtual-backpack-4oel"&gt;Lists&lt;/a&gt; and learned that we can freely add, remove, and change items inside them whenever we want. Lists are great for things that fluidly change.&lt;/p&gt;

&lt;p&gt;But what if you are writing a game and you need to store the $X$ and $Y$ coordinates of a spawn point? Or the days of the week? If another piece of your code accidentally changes Sunday to PizzaDay, your whole application is going to have a breakdown. 🍕💥&lt;/p&gt;

&lt;p&gt;Today, we are looking at a data structure built for security. Imagine a list, but it's been locked inside a titanium safe and the key was thrown into a volcano. 🌋&lt;/p&gt;

&lt;p&gt;Enter Tuples! 🔒&lt;/p&gt;

&lt;h1&gt;
  
  
  🔒 What on Earth is a Tuple?
&lt;/h1&gt;

&lt;p&gt;A Tuple (pronounced tuh-ple or too-ple, let the internet fight over that one) is a collection of items that is ordered and unchangeable.&lt;/p&gt;

&lt;p&gt;In programming speak, we say tuples are immutable. Once you create a tuple, it is set in stone. You cannot add items, remove items, or swap items around.&lt;/p&gt;

&lt;p&gt;To build a tuple, instead of using the square brackets [ ] we used for lists, we use parentheses ():&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Storing coordinates that should NEVER change 📍
&lt;/span&gt;&lt;span class="n"&gt;spawn_point&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;45.51&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;122.68&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;spawn_point&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; 
&lt;span class="c1"&gt;# Prints: (45.51, -122.68)
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  🔍 Reading a Tuple (Spoiler: Zero-Indexing Strikes Again!)
&lt;/h1&gt;

&lt;p&gt;Even though a tuple is locked down tight, you can still peek inside and read what's there. And because it's ordered, it uses the exact same zero-based indexing system we learned yesterday! 🧠&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;classic_colors&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Red&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Green&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Blue&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Accessing items just like a list 🔍
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;classic_colors&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;  &lt;span class="c1"&gt;# Prints: Red
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;classic_colors&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;  &lt;span class="c1"&gt;# Prints: Blue
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;See? Reading them is a breeze. But look what happens when you try to mess with the lockbox...&lt;/p&gt;

&lt;h1&gt;
  
  
  🛑 The "You Can't Touch This" Rule
&lt;/h1&gt;

&lt;p&gt;Let’s say you try to change the first color in your tuple, thinking it behaves just like a list:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;classic_colors&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Red&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Green&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Blue&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Trying to change "Red" to "Yellow" 🤐
&lt;/span&gt;&lt;span class="n"&gt;classic_colors&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Yellow&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you run this, Python will immediately slam the brakes, throw red ink all over your screen, and scream:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nb"&gt;TypeError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;tuple&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt; &lt;span class="nb"&gt;object&lt;/span&gt; &lt;span class="n"&gt;does&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;support&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt; &lt;span class="n"&gt;assignment&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;This is Python protecting you from yourself! It's saying, "Hey! You told me this was a tuple. That means hands off!" 👋🛑&lt;/em&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  🤔 Wait... Why Not Just Use Lists for Everything?
&lt;/h1&gt;

&lt;p&gt;It's a fair question! If lists can do everything tuples can do, plus mutate, why do we even need tuples?&lt;/p&gt;

&lt;p&gt;Safety First: It signals to anyone reading your code (including future you) that this data is a constant and should never be altered.&lt;/p&gt;

&lt;p&gt;Speed &amp;amp; Performance: Because Python knows a tuple will never change size or content, it allocates memory much faster. It's like checking a tiny lockbox versus scanning an expandable backpack.&lt;/p&gt;

&lt;h1&gt;
  
  
  🚀 Today's Challenge 🏆
&lt;/h1&gt;

&lt;p&gt;Let's lock it down!&lt;/p&gt;

&lt;p&gt;Create a tuple called epic_drop_rates containing three decimal percentages (e.g., (0.05, 0.01, 0.005)) representing game loot drop chances.&lt;/p&gt;

&lt;p&gt;Print out the very last item in your tuple using its index.&lt;/p&gt;

&lt;p&gt;Intentional Crash Test: Write a line of code trying to change that last drop rate to 0.10. Run it, watch it break, and celebrate the fact that your data is perfectly safe! (Comment out the broken line afterward so your script runs smoothly again).&lt;/p&gt;

&lt;p&gt;Drop your successful code (or the angry Python error message) in the comments! 👇&lt;/p&gt;

&lt;p&gt;Tomorrow, we are looking at Dictionaries—where we stop using numbers to look things up and start using custom labels! 🏷️&lt;/p&gt;

&lt;p&gt;See you on Day 5! 🐍💻&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Python Day Three – Lists, Indices, and Packing Your Virtual Backpack 🎒</title>
      <dc:creator>Bonface Thuo</dc:creator>
      <pubDate>Fri, 29 May 2026 09:56:14 +0000</pubDate>
      <link>https://dev.to/alpha3020/python-day-three-lists-indices-and-packing-your-virtual-backpack-4oel</link>
      <guid>https://dev.to/alpha3020/python-day-three-lists-indices-and-packing-your-virtual-backpack-4oel</guid>
      <description>&lt;p&gt;Welcome back to Day 3, Python dynamic duo! 🚀 If you survived &lt;a href="https://dev.to/alpha3020/python-day-two-variables-data-types-and-putting-stuff-in-boxes-11o2"&gt;Day 2&lt;/a&gt;, you now know how to create variables and throw strings, integers, floats, and booleans into their own little cardboard boxes. 📦&lt;br&gt;
But what happens when you’re building a game and your character needs an inventory? Or you're making a shopping list app? Creating 50 different variables like item1, item2, item3 will make you want to throw your router out the window. 🪟💻&lt;br&gt;
Today, we are leveling up our storage game. We are moving out of single cardboard boxes and packing a Virtual Backpack: Enter Lists! 🎒🎉&lt;/p&gt;
&lt;h1&gt;
  
  
  🎒 What is a List?
&lt;/h1&gt;

&lt;p&gt;In Python, a List is a data structure used to store a collection of items in one single variable. Think of it like a backpack where you can stuff multiple things inside, keep them in a specific order, and pull them out whenever you need them.&lt;br&gt;
Creating a list is simple. You use square brackets [] and separate your items with commas:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Packing our survival backpack 🗺️
&lt;/span&gt;&lt;span class="n"&gt;backpack&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;map&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;flashlight&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;water bottle&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;protein bar&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;backpack&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; 
&lt;span class="c1"&gt;# Prints: ['map', 'flashlight', 'water bottle', 'protein bar']
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The coolest part? Python lists don’t care what you put inside. You can mix strings, integers, and booleans all in one single backpack (though usually, it makes the most sense to keep similar things together).&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;🤯 The First Rule of Coding Club: We Start Counting at Zero!&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;
Here is where programming turns your brain upside down. 🧠🙃&lt;/p&gt;

&lt;p&gt;If I asked you what the first item in our backpack list is, you’d logically say "map". And you'd be right in human language. But in Python-speak, computer memory starts counting at 0.&lt;/p&gt;

&lt;p&gt;This is called Indexing.&lt;/p&gt;

&lt;p&gt;To pull a specific item out of your backpack, you write the name of the list followed by the item's position (index) inside square brackets:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;backpack&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;map&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;flashlight&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;water bottle&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;protein bar&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="c1"&gt;# Pulling out the items using their index 🔍
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;backpack&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;  &lt;span class="c1"&gt;# Prints: map (The absolute first item!)
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;backpack&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;  &lt;span class="c1"&gt;# Prints: flashlight (The second item!)
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;backpack&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;  &lt;span class="c1"&gt;# Prints: protein bar
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;⚠️ Tantrum Alert: If you try to print backpack[4], Python will immediately crash and scream:&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nb"&gt;IndexError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;list&lt;/span&gt; &lt;span class="n"&gt;index&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="n"&gt;of&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
python&lt;br&gt;
 Why? Because there is no 5th item! Always remember: if your list has 4 items, the indices go from 0 to 3.&lt;/p&gt;
&lt;h1&gt;
  
  
  🛠️ Modifying the Backpack (List Methods)
&lt;/h1&gt;

&lt;p&gt;The best thing about a backpack is that it isn’t glued shut. You can add things to it, change things inside it, or chuck things away when you don't need them anymore.&lt;/p&gt;

&lt;p&gt;Here are the three most common magic spells you’ll use with lists:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Changing an item (Reassignment)&lt;/strong&gt;&lt;br&gt;
Did your flashlight break? Let's swap it out for a laser pointer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;backpack&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;laser pointer&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;backpack&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# Prints: ['map', 'laser pointer', 'water bottle', 'protein bar']
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. Adding an item (.append())&lt;/strong&gt;&lt;br&gt;
Found some gold coins on the floor? Let’s stuff them into the bottom of the backpack using .append():&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;backpack&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;gold coins&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;backpack&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# Prints: ['map', 'laser pointer', 'water bottle', 'protein bar', 'gold coins']
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;3. Removing an item (.remove())&lt;/strong&gt;&lt;br&gt;
Got hungry and ate the protein bar? We can remove it by name:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;backpack&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;remove&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;protein bar&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;backpack&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# Prints: ['map', 'laser pointer', 'water bottle', 'gold coins']
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Thats a wrap for the day ⏱️&lt;/p&gt;

&lt;h1&gt;
  
  
  🚀 Today's Challenge 🏆
&lt;/h1&gt;

&lt;p&gt;Time to put your virtual backpack to the test!&lt;/p&gt;

&lt;p&gt;Create a list called gaming_squad containing the names of 3 of your friends (or fictional characters).&lt;/p&gt;

&lt;p&gt;Print out the second person in that list (Remember the zero-counting rule! 👀).&lt;/p&gt;

&lt;p&gt;Use .append() to add a 4th teammate to the squad.&lt;/p&gt;

&lt;p&gt;Print the final list to the console to make sure they made the cut.&lt;/p&gt;

&lt;p&gt;Drop your code or your squad lineup in the comments below! Are you starting to see how powerful these boxes can get? Tomorrow, we are looking at Tuples—which are basically lists that have been permanently superglued shut. 🔒&lt;/p&gt;

&lt;p&gt;See you on Day 4! 🐍💻👇&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Python: Day Two – Variables, Data Types, and Putting Stuff in Boxes</title>
      <dc:creator>Bonface Thuo</dc:creator>
      <pubDate>Thu, 28 May 2026 07:29:26 +0000</pubDate>
      <link>https://dev.to/alpha3020/python-day-two-variables-data-types-and-putting-stuff-in-boxes-11o2</link>
      <guid>https://dev.to/alpha3020/python-day-two-variables-data-types-and-putting-stuff-in-boxes-11o2</guid>
      <description>&lt;p&gt;Welcome back to Day 2, coders! 🚀 Yesterday we mastered the art of making the console say "Hello, World!" and survived the great indentation panic. 😅,if you missed it, check it out &lt;a href="https://dev.to/alpha3020/hello-world-meet-python-a-beginners-guide-to-not-breaking-things-2ppe"&gt;here.&lt;/a&gt; Today, we are leveling up! We need to teach our Python scripts how to actually &lt;em&gt;remember&lt;/em&gt; things. 🧠&lt;/p&gt;

&lt;p&gt;Grab your beverage of choice ☕, and let's talk about variables, data types, and data structures! 🎉&lt;/p&gt;

&lt;h2&gt;
  
  
  📦 Variables: The Magic Storage Boxes
&lt;/h2&gt;

&lt;p&gt;Think of your computer's memory as a giant, empty warehouse. 🏭 A &lt;strong&gt;variable&lt;/strong&gt; is basically a cardboard box you bring into that warehouse. You scribble a name on the outside of the box with a sharpie 🖍️, and you chuck some data inside! 📥&lt;/p&gt;

&lt;p&gt;In Python, creating a variable is ridiculously easy. You don't have to announce what kind of box it is beforehand (unlike some &lt;em&gt;other&lt;/em&gt; languages 🤭). You just name it and put something in it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Naming our boxes and putting stuff inside 🎁
&lt;/span&gt;&lt;span class="n"&gt;player_name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Mario&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;score&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;
&lt;span class="n"&gt;health&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;99.5&lt;/span&gt;
&lt;span class="n"&gt;is_game_over&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;player_name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="c1"&gt;# Prints: Mario
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;&lt;strong&gt;Rule of thumb:&lt;/strong&gt;&lt;/em&gt; 📏 Give your variables clear names! user_age = 25 is fantastic. 🌟 x = 25 will make you hate yourself in exactly two weeks when you completely forget what x stands for. 😭&lt;/p&gt;

&lt;h1&gt;
  
  
  🧬 Data Types: What's inside the box?
&lt;/h1&gt;

&lt;p&gt;Now, what exactly can we put in these boxes? Understanding the type of your data is half the battle when you're coding. Here are the four basic building blocks you will use 99% of the time: 🧱&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Strings (str) 🔤&lt;/strong&gt;&lt;br&gt;
Strings are just text. Wrap them up in single or double quotes. 🧶 If it has quotes, Python treats it like words, even if it looks like math! 🚫➕&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;greeting&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hello there!&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;fake_number&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;42&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="c1"&gt;# Python thinks this is a word, not math! 🤯
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. Integers (int) 🔢&lt;/strong&gt;&lt;br&gt;
Whole numbers. Positive or negative, but absolutely no decimals allowed! 🛑 Great for counting your extra lives. 👾&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;lives_left&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;
&lt;span class="n"&gt;temperature&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;3. Floats (float) 💧&lt;/strong&gt;&lt;br&gt;
Numbers with a decimal point. Whenever you need exact precision (like currency 💸, weights ⚖️, or scientific measurements 🧪), you use a float!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;19.99&lt;/span&gt;
&lt;span class="n"&gt;pi_value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;3.14159&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;4. Booleans (bool) 🚦&lt;/strong&gt;&lt;br&gt;
True or False. Yes or No. 🟢🔴 That’s it! These are the ultimate decision-makers in your code. (Note: The T and F must be capitalized in Python, or it throws a tantrum! 😤)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;has_coffee&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;
&lt;span class="n"&gt;is_tired&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;🚀 Today's Challenge 🏆&lt;/strong&gt;&lt;br&gt;
Try creating a mini-profile for your favorite fictional character using just variables! 🦸‍♂️ Create a string for their name, an integer for their age, a float for their power level (like 9000.5), and a boolean for whether they are currently saving the world (True or False). Print them all out and see what happens!&lt;/p&gt;

&lt;p&gt;That's a wrap for Day 2! 🎬 We can now store text and numbers like pros. Tomorrow, we are going to tackle Lists and learn how to pack our virtual backpacks with all these awesome variables. 🎒 Are you feeling like a true programmer yet? 😎 Let me know in the comments how your character profile challenge goes! 🐍💻👇&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Hello World, Meet Python! (A Beginner's Guide to Not Breaking Things)</title>
      <dc:creator>Bonface Thuo</dc:creator>
      <pubDate>Tue, 26 May 2026 06:59:07 +0000</pubDate>
      <link>https://dev.to/alpha3020/hello-world-meet-python-a-beginners-guide-to-not-breaking-things-2ppe</link>
      <guid>https://dev.to/alpha3020/hello-world-meet-python-a-beginners-guide-to-not-breaking-things-2ppe</guid>
      <description>&lt;h2&gt;
  
  
  Python: Day One – The Indentation Struggle is Real (Will it ever print?)
&lt;/h2&gt;

&lt;p&gt;Hey everyone! 👋 Welcome to Day 1 of my Python journey. I've decided it's finally time to tame the snake, dive into the code, and inevitably spend 45 minutes staring at my screen because I missed a single quotation mark. &lt;/p&gt;

&lt;p&gt;We are starting from the very beginning today. Grab a coffee, and let's get into it!&lt;/p&gt;




&lt;h2&gt;
  
  
  What exactly is Python? 🤔
&lt;/h2&gt;

&lt;p&gt;Before we start typing wildly, let's establish what we're actually working with. Python is a &lt;strong&gt;high-level, interpreted programming language&lt;/strong&gt;. That is just a fancy, technical way of saying that the code looks a lot closer to human English than robot binary, which makes it much easier to write and run. &lt;/p&gt;

&lt;p&gt;It is incredibly popular because of its &lt;strong&gt;simple and readable syntax&lt;/strong&gt;. Plus, it's basically the Swiss Army knife of coding. You can use it for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🕸️ Web development&lt;/li&gt;
&lt;li&gt;📊 Data analysis&lt;/li&gt;
&lt;li&gt;🤖 Machine learning&lt;/li&gt;
&lt;li&gt;⚙️ Automation (making the computer do your boring tasks!)&lt;/li&gt;
&lt;li&gt;🎮 Game development&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Our First Magic Trick: The &lt;code&gt;print()&lt;/code&gt; Function 🪄
&lt;/h2&gt;

&lt;p&gt;The absolute most basic thing you can do in Python is command the computer to talk back to you. We do this using the &lt;code&gt;print()&lt;/code&gt; function, which displays output straight to the console.&lt;/p&gt;

&lt;p&gt;Here is the rite of passage for every developer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Basic print statement
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hello, World!&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Welcome to Python!&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;This is your first Python program&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Mixing it Up: Strings and Numbers
&lt;/h1&gt;

&lt;p&gt;The print() function isn't just for basic text (which we call "strings"). You can print numbers, or even string multiple items together just by separating them with commas!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Print with numbers
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;42&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;3.14&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Printing multiple items separated by commas
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Python&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;is&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;awesome&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Multiple values on one line
&lt;/span&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Age:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Name:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Alice&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That’s a wrap for Day 1! We've successfully made the computer speak to us, and more importantly, we haven't broken anything yet.&lt;/p&gt;

&lt;p&gt;Are you learning Python right now too? Let me know in the comments what you're struggling with (or what you're enjoying!) so we can suffer through the indentation errors together. 🐍💻&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
