<?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: still-purrfect</title>
    <description>The latest articles on DEV Community by still-purrfect (@stillpurrfect).</description>
    <link>https://dev.to/stillpurrfect</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3952210%2F39152791-8a4c-400d-90dc-2f978d5b3e5e.png</url>
      <title>DEV Community: still-purrfect</title>
      <link>https://dev.to/stillpurrfect</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/stillpurrfect"/>
    <language>en</language>
    <item>
      <title>📖 DICTIONARIES IN PYTHON: THE SMART DATA VAULT</title>
      <dc:creator>still-purrfect</dc:creator>
      <pubDate>Thu, 28 May 2026 11:43:57 +0000</pubDate>
      <link>https://dev.to/stillpurrfect/dictionaries-in-python-the-smart-data-vault-5gpf</link>
      <guid>https://dev.to/stillpurrfect/dictionaries-in-python-the-smart-data-vault-5gpf</guid>
      <description>&lt;p&gt;In our last stop, we explored &lt;a href="https://dev.to/stillpurrfect/tuples-in-python-something-i-almost-ignored-58cm"&gt;&lt;strong&gt;tuples&lt;/strong&gt; &lt;/a&gt; &lt;br&gt;
those neat, ordered, and unchangeable containers that keep data safe but a bit rigid.&lt;br&gt;
But what happens when you don’t just want to store data…you want to &lt;strong&gt;label it, search it, and instantly retrieve it like a pro?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That’s where dictionaries step in.&lt;br&gt;
If tuples are like a fixed checklist, then dictionaries are more like a &lt;strong&gt;smart contact list in your phone&lt;/strong&gt; you don’t scroll randomly, you just search a name and boom, you get exactly what you need.&lt;/p&gt;

&lt;p&gt;A &lt;strong&gt;dictionary&lt;/strong&gt; in Python is a built-in data structure used to store data in &lt;strong&gt;key–value pairs&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Think of it like this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;🗝️ Key = the label (what you search with)&lt;br&gt;
📦 Value = the actual data stored&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;🧠 &lt;strong&gt;Basic Structure&lt;/strong&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="n"&gt;student&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;Maryanne&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;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;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;course&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;Computer Science&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;Here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;"name"&lt;/code&gt; → key&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;"Maryanne"&lt;/code&gt; → value&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;⚙️&lt;strong&gt;Why Dictionaries Matter&lt;/strong&gt;&lt;br&gt;
In real systems, dictionaries are everywhere:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;User profiles in apps&lt;/li&gt;
&lt;li&gt;Configuration settings&lt;/li&gt;
&lt;li&gt;APIs returning JSON data&lt;/li&gt;
&lt;li&gt;Databases mapping IDs to records
Basically, if software needs to &lt;strong&gt;quickly look something up&lt;/strong&gt;, dictionaries are usually behind the scenes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;🚀 &lt;em&gt;&lt;u&gt;Key Features of Dictionaries&lt;/u&gt;&lt;/em&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;🔑 Key–Value Pair System&lt;br&gt;
Everything is stored as a pair.&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight python"&gt;&lt;code&gt;  &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;username&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;coder123&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;




&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;⚡ Fast Lookup&lt;br&gt;
Instead of searching step-by-step,           Python goes: &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Give me the key → I’ll give you the value instantly.”&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;🔄 Mutable (Editable)&lt;br&gt;
You can change values anytime.&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight python"&gt;&lt;code&gt;   &lt;span class="n"&gt;student&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="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;21&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;




&lt;/li&gt;

&lt;li&gt;&lt;p&gt;🚫 No Duplicate Keys&lt;br&gt;&lt;br&gt;
Each key is unique. If you repeat a key,  the latest value replaces the old one.&lt;/p&gt;&lt;/li&gt;

&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;🧩 Accessing Data&lt;/strong&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="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;student&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Maryanne
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You don’t “search through” the dictionary you &lt;strong&gt;call the key directly&lt;/strong&gt; like an API request.&lt;/p&gt;

&lt;p&gt;🛠️ &lt;strong&gt;Common Dictionary Operations&lt;/strong&gt;&lt;br&gt;
➕ Adding Data&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;student&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;grade&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;A&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;✏️ Updating Data&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;student&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;course&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;Software Engineering&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;❌ Removing Data&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="k"&gt;del&lt;/span&gt; &lt;span class="n"&gt;student&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🔍 Checking 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="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="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;student&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Returns:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;True
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🧠 &lt;strong&gt;Real-Life Analogy&lt;/strong&gt;&lt;br&gt;
Imagine a database system:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Keys = Primary Index (like User ID)&lt;/li&gt;
&lt;li&gt;Values = User data stored in rows
Instead of scanning every record (slow), dictionaries use &lt;strong&gt;direct access mapping&lt;/strong&gt; (fast and efficient).
That’s basically how:&lt;/li&gt;
&lt;li&gt;Web apps&lt;/li&gt;
&lt;li&gt;Backend systems&lt;/li&gt;
&lt;li&gt;Cloud services
stay fast even with millions of users.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;💡 &lt;strong&gt;Why Developers Love Dictionaries&lt;/strong&gt;&lt;br&gt;
Because they:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reduce complexity&lt;/li&gt;
&lt;li&gt;Make code cleaner&lt;/li&gt;
&lt;li&gt;Speed up data retrieval&lt;/li&gt;
&lt;li&gt;Mirror real-world structured data (like JSON)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;🔗 &lt;strong&gt;Mini Link Back to Tuples&lt;/strong&gt;&lt;br&gt;
Unlike tuples, which are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ordered&lt;/li&gt;
&lt;li&gt;fixed&lt;/li&gt;
&lt;li&gt;unchangeable
Dictionaries are:&lt;/li&gt;
&lt;li&gt;flexible&lt;/li&gt;
&lt;li&gt;labeled&lt;/li&gt;
&lt;li&gt;dynamic
So if tuples are &lt;strong&gt;locked memory snapshots&lt;/strong&gt;, dictionaries are &lt;strong&gt;live smart systems constantly updating in real time&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;🧪 &lt;strong&gt;Final Thought&lt;/strong&gt;&lt;br&gt;
If programming had a “thinking brain” data structure, it would be dictionaries. Because they don’t just store data they &lt;strong&gt;understand how to retrieve it instantly.&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://github.com/still-purrfect/learning-python1.git" rel="noopener noreferrer"&gt;Github Repo:&lt;/a&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>beginners</category>
      <category>python</category>
      <category>learning</category>
    </item>
    <item>
      <title>Tuples in Python (something I almost ignored)</title>
      <dc:creator>still-purrfect</dc:creator>
      <pubDate>Thu, 28 May 2026 08:04:01 +0000</pubDate>
      <link>https://dev.to/stillpurrfect/tuples-in-python-something-i-almost-ignored-58cm</link>
      <guid>https://dev.to/stillpurrfect/tuples-in-python-something-i-almost-ignored-58cm</guid>
      <description>&lt;p&gt;I recently shared what I learned about lists, and while I was getting comfortable with them, I came across tuples. They just looked like lists with different brackets, they felt unnecessary… but I was wrong 😅&lt;br&gt;
👉 You can read my post on lists &lt;a href="https://dev.to/stillpurrfect/python-lists-one-of-the-first-things-that-actually-made-sense-k1p"&gt;here:&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I thought at first&lt;/strong&gt;&lt;br&gt;
I was mostly using lists like this:&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;numbers&lt;/span&gt; &lt;span class="o"&gt;=&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="mi"&gt;2&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then I saw tuples:&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;numbers&lt;/span&gt; &lt;span class="o"&gt;=&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="mi"&gt;2&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And I was like… okay? What’s the difference?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I later realized&lt;/strong&gt;&lt;br&gt;
The main difference is simple:&lt;br&gt;
 👉 You can change a list&lt;br&gt;
 👉 You can’t change a tuple&lt;br&gt;
That’s it.&lt;br&gt;
At first, that felt like a disadvantage.&lt;br&gt;
But then I started thinking about it differently.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A small example&lt;/strong&gt;&lt;br&gt;
Let’s say I have coordinates:&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;coordinates&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;10.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;20.3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These values are not supposed to change.&lt;br&gt;
So using a tuple actually makes sense here.&lt;br&gt;
It’s like saying:&lt;br&gt;
“This is fixed.”&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Something I didn’t expect&lt;/strong&gt;&lt;br&gt;
Functions can return tuples without you even noticing:&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="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;get_user&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Maryanne&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;21&lt;/span&gt;

&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;age&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;get_user&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When I first saw this, I didn’t even know that was a tuple 😅&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My takeaway (so far)&lt;/strong&gt;&lt;br&gt;
I’m still learning, but this is how I see it now:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use a list when things might change&lt;/li&gt;
&lt;li&gt;Use a tuple when things should stay the same
It’s a small thing, but it actually makes your code clearer.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Final thought&lt;/strong&gt;&lt;br&gt;
I used to think tuples were unnecessary.&lt;br&gt;
Now I see them as a simple way to be more intentional with my code.&lt;br&gt;
Still learning, but I thought I’d share this in case someone else is confused like I was.&lt;/p&gt;

&lt;p&gt;If you’re also learning Python, did tuples make sense to you immediately, or did they confuse you at first?&lt;br&gt;
Each step has been building on the last and after tuples, dictionaries felt like a real shift.&lt;br&gt;
Now I’m not just storing data, I’m organizing it with purpose.&lt;br&gt;
👉 I wrote about dictionaries here if you want to &lt;a href="https://dev.to/stillpurrfect/dictionaries-in-python-the-smart-data-vault-5gpf"&gt;check it out:&lt;/a&gt;&lt;br&gt;
Explore the code behind this on my &lt;a href="https://github.com/still-purrfect/learning-python1.git" rel="noopener noreferrer"&gt;Github Repo:&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Python Lists (one of the first things that actually made sense)</title>
      <dc:creator>still-purrfect</dc:creator>
      <pubDate>Thu, 28 May 2026 07:04:02 +0000</pubDate>
      <link>https://dev.to/stillpurrfect/python-lists-one-of-the-first-things-that-actually-made-sense-k1p</link>
      <guid>https://dev.to/stillpurrfect/python-lists-one-of-the-first-things-that-actually-made-sense-k1p</guid>
      <description>&lt;p&gt;When I started learning Python, lists were one of the first things that actually clicked for me. They’re simple, but also really useful.&lt;br&gt;
Before this, I was learning about variables and how to store single values.  Lists felt like the next step storing multiple values in one place.&lt;br&gt;
👉 If you missed it, you can read about variables &lt;a href="https://dev.to/stillpurrfect/python-variables-the-tiny-containers-that-run-everything-you-see-in-code-4dke"&gt;here:&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is a list?&lt;/strong&gt;&lt;br&gt;
A list is just a way to store multiple values in one place.&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;numbers&lt;/span&gt; &lt;span class="o"&gt;=&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="mi"&gt;2&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That’s it.&lt;br&gt;
Instead of creating many variables, you just put everything inside one list.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why I like lists&lt;/strong&gt;&lt;br&gt;
The best part about lists is that you can change them.&lt;br&gt;
You can add things:&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;numbers&lt;/span&gt; &lt;span class="o"&gt;=&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="mi"&gt;2&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="n"&gt;numbers&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="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can remove things:&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;numbers&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="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can even change values:&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;numbers&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="mi"&gt;10&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This made lists feel very flexible compared to other things I’ve learned so far.&lt;br&gt;
A simple example&lt;br&gt;
Let’s say I want to store names:&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;names&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;Maryanne&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;John&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;Aisha&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;If I want to get the first 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="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;names&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At first, the [0] was confusing, but I’m getting used to it now.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I’m starting to notice&lt;/strong&gt;&lt;br&gt;
Lists are good when your data might change.&lt;br&gt;
Like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Adding new items&lt;/li&gt;
&lt;li&gt;Removing items&lt;/li&gt;
&lt;li&gt;Updating values
That’s probably why they’re used a lot.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;My takeaway (so far)&lt;/strong&gt;&lt;br&gt;
Lists are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Easy to understand&lt;/li&gt;
&lt;li&gt;Easy to use&lt;/li&gt;
&lt;li&gt;Very flexible
I feel like they’re one of those things you’ll keep using over and over again.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Final thought&lt;/strong&gt;&lt;br&gt;
I’m still learning, but lists made Python feel a bit less scary for me.&lt;br&gt;
If you’re just starting out, this is one of those topics that’s worth practicing a lot.&lt;/p&gt;

&lt;p&gt;If you’re learning Python too, what was the first concept that actually made sense to you?&lt;br&gt;
I also explored tuples (which confused me at first 😅):&lt;br&gt;
👉 Read it &lt;a href="https://dev.to/stillpurrfect/tuples-in-python-something-i-almost-ignored-58cm"&gt;here:&lt;/a&gt;&lt;br&gt;
Explore the code behind this on my &lt;a href="https://github.com/still-purrfect/learning-python1.git" rel="noopener noreferrer"&gt;Github Repo:&lt;/a&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>beginners</category>
      <category>python</category>
      <category>learning</category>
    </item>
    <item>
      <title>🧠 Python Variables: The Tiny Containers That Run Everything You See in Code!</title>
      <dc:creator>still-purrfect</dc:creator>
      <pubDate>Tue, 26 May 2026 10:21:30 +0000</pubDate>
      <link>https://dev.to/stillpurrfect/python-variables-the-tiny-containers-that-run-everything-you-see-in-code-4dke</link>
      <guid>https://dev.to/stillpurrfect/python-variables-the-tiny-containers-that-run-everything-you-see-in-code-4dke</guid>
      <description>&lt;p&gt;&lt;a href="https://dev.tourl"&gt;&lt;/a&gt;Before Python became Python… before apps, websites, AI… there was something small holding everything together: variables.&lt;/p&gt;

&lt;p&gt;And honestly, that’s where most beginners underestimate power.&lt;/p&gt;

&lt;p&gt;Let’s fix that.&lt;/p&gt;

&lt;p&gt;🧩 Imagine This for a Second…&lt;/p&gt;

&lt;p&gt;You walk into a room.&lt;/p&gt;

&lt;p&gt;Everything is labeled:&lt;/p&gt;

&lt;p&gt;📦 “Name: Maryanne”&lt;br&gt;
📦 “Age: 21”&lt;br&gt;
📦 “Height: 5.6”&lt;/p&gt;

&lt;p&gt;Nothing is random. Everything is stored, named, and ready to be used.&lt;/p&gt;

&lt;p&gt;That’s exactly what a variable is in Python.&lt;/p&gt;

&lt;p&gt;A labeled container for data.&lt;/p&gt;

&lt;p&gt;Simple. But powerful.&lt;/p&gt;

&lt;p&gt;🧪 So… What Is a Variable?&lt;/p&gt;

&lt;p&gt;In Python, a variable is created the moment you assign a value:&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;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;Maryanne&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;age&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;21&lt;/span&gt;
&lt;span class="n"&gt;height&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;5.6&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No declaration. No complexity. Just assignment.&lt;/p&gt;

&lt;p&gt;That’s called dynamic typing, but don’t overthink it just means Python is smart enough to figure things out for you.&lt;/p&gt;

&lt;p&gt;⚡ Why Should You Even Care?&lt;/p&gt;

&lt;p&gt;Because variables are not “just basics.”&lt;br&gt;
They are:&lt;br&gt;
 🧠 Memory holders&lt;br&gt;
 🔁 Reusable data points&lt;br&gt;
 🧱 Building blocks of every program you’ll ever write  &lt;/p&gt;

&lt;p&gt;Without variables, your code would forget everything instantly.&lt;br&gt;
And that would be… chaos.&lt;/p&gt;

&lt;p&gt;🎯 A Real-Life Example &lt;br&gt;
Let’s say you’re tracking a student:&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;student_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;Maryanne&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;marks&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;85&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;student_name&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;marks&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now imagine scaling that:&lt;br&gt;
1 student → easy&lt;br&gt;
100 students → still manageable&lt;br&gt;
1 million students → only possible because variables exist&lt;br&gt;
That’s the difference.&lt;/p&gt;

&lt;p&gt;Python is flexible, but there are still rules:&lt;br&gt;
✔ Good naming&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;user_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;John&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;totalMarks&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;90&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;❌ Bad naming&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="mi"&gt;1&lt;/span&gt;&lt;span class="n"&gt;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;John&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;      &lt;span class="c1"&gt;# starts with number
&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt; &lt;span class="n"&gt;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;John&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;  &lt;span class="c1"&gt;# space inside name
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;💡 A Small Truth Most Tutorials Don’t Tell You&lt;br&gt;
   Variables are not about syntax.&lt;br&gt;
   They are about thinking like a programmer&lt;/p&gt;

&lt;p&gt;🔥 Final Thought&lt;br&gt;
If programming feels overwhelming right now, it      shouldn’t.&lt;br&gt;
Because every complex system you’ve seen; apps, games, AI is just a lot of simple variables working together.&lt;/p&gt;

&lt;p&gt;Start there. Build from there.&lt;br&gt;
Everything else is just layers.&lt;br&gt;
And now that we know about variables, we can move on to how we store multiple values together using lists. Continue &lt;a href="https://dev.to/stillpurrfect/python-lists-one-of-the-first-things-that-actually-made-sense-k1p"&gt;here:&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🧠Feel free to live a comment or ask a question.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>python</category>
    </item>
  </channel>
</rss>
