<?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: Sᴛᴀʀ⭐</title>
    <description>The latest articles on DEV Community by Sᴛᴀʀ⭐ (@star123).</description>
    <link>https://dev.to/star123</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%2F4190689%2Fa5769091-dbf8-41b9-ad15-609006a4d8ce.jpg</url>
      <title>DEV Community: Sᴛᴀʀ⭐</title>
      <link>https://dev.to/star123</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/star123"/>
    <language>en</language>
    <item>
      <title>Writing Is Really Fun, But My Luck Had Other Plans 🐿</title>
      <dc:creator>Sᴛᴀʀ⭐</dc:creator>
      <pubDate>Fri, 27 Nov 2026 14:19:45 +0000</pubDate>
      <link>https://dev.to/thethirdcup/writing-is-really-fun-but-my-luck-had-other-plans-493m</link>
      <guid>https://dev.to/thethirdcup/writing-is-really-fun-but-my-luck-had-other-plans-493m</guid>
      <description>&lt;p&gt;Last night, after having dinner at around 8 PM, I thought it was time to write a post. I was wondering whether I should write something for Necoz, Startup Cafe, or maybe explore a completely different topic.&lt;/p&gt;

&lt;p&gt;I kept thinking for a while, and then an idea suddenly came to my mind. This idea came from a lot of imagination because, honestly, imagination is where most of my ideas come from.&lt;/p&gt;

&lt;p&gt;I turned on my computer, opened Dev.to, and opened a translation tool on the side. I thought, "Let's write something!"&lt;/p&gt;

&lt;p&gt;But as soon as I sat down to write, my imagination suddenly disappeared. I forgot everything. I knew what I wanted to write about, but the moment I started typing, my mind went completely blank.&lt;/p&gt;

&lt;p&gt;I thought maybe I couldn't remember it right now, but perhaps the idea would come back later. So, I left my computer and went outside.&lt;/p&gt;

&lt;p&gt;There, my mother had given me a glass of milk that was as hot as lava. She told me, "Wait until it cools down, and then drink it."&lt;/p&gt;

&lt;p&gt;As soon as I drank that lava-hot milk, I went back to my room. My elder brother was doing something really strange—he was running the AC. Maybe he had forgotten that it was winter!&lt;/p&gt;

&lt;p&gt;I went into my room, sat down at my PC, and started thinking about the idea again. First, I thought I would work on the title and cover image.&lt;/p&gt;

&lt;p&gt;Then I finished that much work. After that, I thought, "Now I should start writing the article."&lt;/p&gt;

&lt;p&gt;I started writing, but suddenly, the electricity went out. Hmm!&lt;/p&gt;

&lt;p&gt;Then my brother said, &lt;strong&gt;Turn off this laptop. Using it in such dim light can damage your eyes.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;So, I did exactly that.&lt;/p&gt;

&lt;p&gt;After 15 minutes, the electricity came back. I turned on my laptop again and started writing. But while writing, I was using the Backspace key more than any other key! &lt;/p&gt;

&lt;p&gt;I managed to write a little, but then, at around 10 PM, I heard my brother's loud voice:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It's 10 o'clock! Turn it off now and go to sleep!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;His voice startled me. I went outside, picked up a book, and opened it. There was a story called On the Face of It. I started reading it and finally went to sleep at 10:30 PM.&lt;/p&gt;

&lt;p&gt;And that's how my entire NIGHT went by without me writing a single article!&lt;/p&gt;

</description>
      <category>writing</category>
      <category>discuss</category>
      <category>cafe</category>
    </item>
    <item>
      <title>Why Do You Bookmark Articles?</title>
      <dc:creator>Sᴛᴀʀ⭐</dc:creator>
      <pubDate>Thu, 26 Nov 2026 15:01:03 +0000</pubDate>
      <link>https://dev.to/necoz/why-do-you-bookmark-articles-4kf</link>
      <guid>https://dev.to/necoz/why-do-you-bookmark-articles-4kf</guid>
      <description>&lt;p&gt;I have never &lt;strong&gt;bookmarked&lt;/strong&gt; an article before. It’s not that I have never come across an &lt;strong&gt;interesting article&lt;/strong&gt;. To be honest, I have just never understood why people decide to &lt;strong&gt;bookmark&lt;/strong&gt; an &lt;strong&gt;article&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You must be thinking, &lt;strong&gt;How weird is this person!&lt;/strong&gt; 😅&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvraog4sidc31tmc8zntn.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvraog4sidc31tmc8zntn.gif" alt="Image dessscription" width="374" height="346"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Do you know right away when you read an &lt;strong&gt;article&lt;/strong&gt; that it’s &lt;strong&gt;worth saving?&lt;/strong&gt; Do you think about it before &lt;strong&gt;bookmarking&lt;/strong&gt;, or do you just save it instantly? What goes through your mind at that moment? I’m genuinely curious because &lt;strong&gt;everyone&lt;/strong&gt; has their own way of deciding what to save.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>bookmark</category>
      <category>necoz</category>
    </item>
    <item>
      <title>Trapped Inside the Frozen Cave for 5 Days! ❄️ | Python Lists Adventure</title>
      <dc:creator>Sᴛᴀʀ⭐</dc:creator>
      <pubDate>Wed, 25 Nov 2026 15:51:08 +0000</pubDate>
      <link>https://dev.to/necoz/trapped-inside-the-frozen-cave-for-5-days-python-lists-adventure-2d65</link>
      <guid>https://dev.to/necoz/trapped-inside-the-frozen-cave-for-5-days-python-lists-adventure-2d65</guid>
      <description>&lt;p&gt;It was a beautiful winter morning on Necoz Planet.&lt;/p&gt;

&lt;p&gt;Snow was falling everywhere.&lt;/p&gt;

&lt;p&gt;Tom, Milo, Luna, and Max decided to go on a mountain adventure.&lt;/p&gt;

&lt;p&gt;Tom was carrying a backpack.&lt;/p&gt;

&lt;p&gt;Milo was carrying 17 sandwiches.&lt;/p&gt;

&lt;p&gt;Max was carrying... absolutely nothing.&lt;/p&gt;

&lt;p&gt;Luna asked:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Max, where are your supplies?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Max smiled.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I have confidence!&lt;/strong&gt; 😎&lt;/p&gt;

&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Great. We'll eat your confidence when we're hungry.&lt;/strong&gt; 😂&lt;/p&gt;

&lt;p&gt;Everyone laughed.&lt;/p&gt;

&lt;p&gt;But they had NO IDEA what was waiting for them...&lt;/p&gt;

&lt;h2&gt;
  
  
  ❄️ The Mysterious Cave
&lt;/h2&gt;

&lt;p&gt;After walking for three hours, they discovered a HUGE cave hidden behind a frozen waterfall.&lt;/p&gt;

&lt;p&gt;There was a strange message carved into the entrance:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ENTER IF YOU DARE. THE MOUNTAIN NEVER FORGETS.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Milo looked at the entrance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sounds friendly enough!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Luna:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That's literally the opposite of friendly.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;But curiosity won.&lt;/p&gt;

&lt;p&gt;One by one, they entered the cave.&lt;/p&gt;

&lt;p&gt;Inside, everything was beautiful.&lt;/p&gt;

&lt;p&gt;Glowing blue crystals covered the walls.&lt;/p&gt;

&lt;p&gt;Tiny underground waterfalls sparkled.&lt;/p&gt;

&lt;p&gt;And strange little lights floated in the air.&lt;/p&gt;

&lt;p&gt;Max shouted:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;THIS IS AMAZING!!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Then suddenly...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;KRRRRRRRRRRRRRRRR!!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A massive earthquake shook the mountain!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BOOOOOOOM!!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The entrance collapsed!&lt;/p&gt;

&lt;p&gt;A giant rock blocked the exit.&lt;/p&gt;

&lt;p&gt;Silence.&lt;/p&gt;

&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Umm... guys?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Milo:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Yes?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;We're trapped.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Milo:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Okay. But... who has the sandwiches?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;😭😭😭&lt;/p&gt;

&lt;h2&gt;
  
  
  🧺 Day 1: Creating a Survival Inventory
&lt;/h2&gt;

&lt;p&gt;The cats realized they needed to survive until they found another exit.&lt;/p&gt;

&lt;p&gt;First, they collected everything they had.&lt;/p&gt;

&lt;p&gt;Tom opened his backpack.&lt;/p&gt;

&lt;p&gt;Inside were:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;4 sandwiches&lt;/li&gt;
&lt;li&gt;2 water bottles&lt;/li&gt;
&lt;li&gt;1 flashlight&lt;/li&gt;
&lt;li&gt;3 chocolate bars&lt;/li&gt;
&lt;li&gt;1 blanket&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Luna said:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;We need to organize everything!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Tom opened his Python laptop (yes, somehow he brought a laptop into a cave 😂).&lt;/p&gt;

&lt;p&gt;He created a Python List.&lt;/p&gt;

&lt;p&gt;python&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;supplies&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="s2"&gt;"Sandwich"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"Water"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"Flashlight"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"Chocolate"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"Blanket"&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;

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

&lt;/div&gt;



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

&lt;p&gt;text&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;['Sandwich', 'Water', 'Flashlight', 'Chocolate', 'Blanket']
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;See? Everything is organized!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Max:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can you add pizza?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NO. We are in a cave, not a restaurant.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;😂&lt;/p&gt;

&lt;h2&gt;
  
  
  🍫 Day 2: The Great Food Disaster
&lt;/h2&gt;

&lt;p&gt;The next morning, Milo woke up hungry.&lt;/p&gt;

&lt;p&gt;He looked at the supplies.&lt;/p&gt;

&lt;p&gt;There were only 4 sandwiches left.&lt;/p&gt;

&lt;p&gt;But something terrible had happened...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MILO HAD EATEN TWO SANDWICHES DURING THE NIGHT!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MILOOOOOO!!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Milo:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I was sleepwalking!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Luna:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;While holding a sandwich?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Milo:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Very talented sleepwalking.&lt;/strong&gt; 😭&lt;/p&gt;

&lt;p&gt;They updated their food list.&lt;/p&gt;

&lt;p&gt;python&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;food&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Sandwich"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Sandwich"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Chocolate"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Water"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;food&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="s2"&gt;"Sandwich"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

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

&lt;/div&gt;



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

&lt;p&gt;text&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;['Sandwich', 'Chocolate', 'Water']
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One sandwich is gone!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Milo:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Technically, it's inside me now.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;🤣&lt;/p&gt;

&lt;p&gt;They decided to divide the remaining food equally and save some for tomorrow.&lt;/p&gt;

&lt;h2&gt;
  
  
  🦇 Day 3: Something Was Moving in the Darkness!
&lt;/h2&gt;

&lt;p&gt;That night, while everyone was sleeping...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TAP... TAP... TAP...&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Luna opened her eyes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Guys?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Nobody answered.&lt;/p&gt;

&lt;p&gt;Then...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SCRAAAAATCH!!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Something was moving behind the rocks!&lt;/p&gt;

&lt;p&gt;Max grabbed the flashlight.&lt;/p&gt;

&lt;p&gt;Tom grabbed the blanket.&lt;/p&gt;

&lt;p&gt;Milo grabbed the last chocolate bar.&lt;/p&gt;

&lt;p&gt;Luna:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WHY ARE YOU GRABBING CHOCOLATE?!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Milo:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;EMOTIONAL SUPPORT!&lt;/strong&gt; 😭&lt;/p&gt;

&lt;p&gt;They slowly walked toward the sound.&lt;/p&gt;

&lt;p&gt;And suddenly...&lt;/p&gt;

&lt;p&gt;A tiny creature jumped out!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A BABY CAVE BAT!&lt;/strong&gt; 🦇&lt;/p&gt;

&lt;p&gt;It was scared and hungry.&lt;/p&gt;

&lt;p&gt;Luna smiled.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Awww! It's just a little baby!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;They gave it a tiny piece of fruit.&lt;/p&gt;

&lt;p&gt;The bat became their new friend.&lt;/p&gt;

&lt;p&gt;They named it &lt;strong&gt;BUBBLES&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Bubbles started flying around the cave.&lt;/p&gt;

&lt;p&gt;And guess what?&lt;/p&gt;

&lt;p&gt;It knew the entire cave system!&lt;/p&gt;

&lt;h2&gt;
  
  
  🌊 Day 4: The Underground River
&lt;/h2&gt;

&lt;p&gt;Bubbles led them to a secret underground river.&lt;/p&gt;

&lt;p&gt;There was fresh water!&lt;/p&gt;

&lt;p&gt;Everyone celebrated.&lt;/p&gt;

&lt;p&gt;But there was one problem.&lt;/p&gt;

&lt;p&gt;The river was too wide to cross.&lt;/p&gt;

&lt;p&gt;Max found some wooden pieces nearby.&lt;/p&gt;

&lt;p&gt;Tom suggested creating a small raft.&lt;/p&gt;

&lt;p&gt;They collected the materials into another list.&lt;/p&gt;

&lt;p&gt;python&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;materials&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Wood"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Rope"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Wood"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Wood"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="n"&gt;materials&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="s2"&gt;"Big Stick"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

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

&lt;/div&gt;



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

&lt;p&gt;text&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;['Wood', 'Rope', 'Wood', 'Wood', 'Big Stick']
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;They built a tiny raft.&lt;/p&gt;

&lt;p&gt;Max stepped onto it.&lt;/p&gt;

&lt;p&gt;The raft immediately tilted.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SPLAAAAASH!!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Max fell into the freezing water!&lt;/p&gt;

&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CONGRATULATIONS! YOU HAVE DISCOVERED SWIMMING!&lt;/strong&gt; 😂&lt;/p&gt;

&lt;p&gt;Fortunately, everyone was safe.&lt;/p&gt;

&lt;p&gt;They crossed the river together.&lt;/p&gt;

&lt;p&gt;And on the other side...&lt;/p&gt;

&lt;p&gt;They discovered something unbelievable.&lt;/p&gt;

&lt;p&gt;A small tunnel with fresh air coming from inside!&lt;/p&gt;

&lt;h2&gt;
  
  
  😱 Day 5: The Biggest Surprise!
&lt;/h2&gt;

&lt;p&gt;The cats followed the tunnel.&lt;/p&gt;

&lt;p&gt;It became narrower and darker.&lt;/p&gt;

&lt;p&gt;Then Bubbles suddenly stopped.&lt;/p&gt;

&lt;p&gt;It flew toward a tiny hole in the wall.&lt;/p&gt;

&lt;p&gt;Luna noticed something strange.&lt;/p&gt;

&lt;p&gt;There was sunlight coming through!&lt;/p&gt;

&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WAIT... IS THAT DAYLIGHT?!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;They started removing small rocks.&lt;/p&gt;

&lt;p&gt;One by one.&lt;/p&gt;

&lt;p&gt;Rock after rock.&lt;/p&gt;

&lt;p&gt;Until...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BOOOOOOOOOOOM!!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The final rock fell!&lt;/p&gt;

&lt;p&gt;A beautiful snowy valley appeared in front of them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;THEY WERE OUT!!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;All four cats jumped with happiness.&lt;/p&gt;

&lt;p&gt;Milo shouted:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;FREEDOMMMMM!!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Max:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;FOODMMMM!!!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;THAT IS NOT A WORD!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;🤣&lt;/p&gt;

&lt;h2&gt;
  
  
  🎁 The Unexpected Ending
&lt;/h2&gt;

&lt;p&gt;Just when they thought their adventure was over...&lt;/p&gt;

&lt;p&gt;A mysterious old cat appeared outside the cave.&lt;/p&gt;

&lt;p&gt;He looked at them and laughed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Well, well, well... You finally escaped!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Luna asked:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Who are you?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The old cat smiled.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I am the guardian of this mountain.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Tom:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;YOU KNEW WE WERE INSIDE?!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The guardian nodded.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Of course. I built that cave!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Everyone stared at him.&lt;/p&gt;

&lt;p&gt;Milo:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SO YOU COULD HAVE HELPED US?!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The guardian laughed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That cave was a survival test. I wanted to see if you could work together!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Max:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WE ALMOST BECAME FROZEN CAT BURGERS!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The guardian opened a giant wooden box.&lt;/p&gt;

&lt;p&gt;Inside were...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;100 PIZZAS, 50 BURGERS, AND A MOUNTAIN OF CHOCOLATE!!!&lt;/strong&gt; 🍕🍔🍫&lt;/p&gt;

&lt;p&gt;Milo started crying.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;THIS... THIS IS THE BEST DAY OF MY LIFE!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;But there was one final surprise.&lt;/p&gt;

&lt;p&gt;The guardian handed Tom a golden key.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Congratulations! You have earned access to the legendary Necoz Treasure Room.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Tom looked at the key.&lt;/p&gt;

&lt;p&gt;Then looked at his friends.&lt;/p&gt;

&lt;p&gt;Then looked at the food.&lt;/p&gt;

&lt;p&gt;He smiled.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can we eat first?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;EVERYONE:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;YEEEEEEEEES!!!&lt;/strong&gt; 😂&lt;/p&gt;

&lt;p&gt;And that's how four little cats survived five days inside a mysterious cave...&lt;/p&gt;

&lt;p&gt;With teamwork, courage, a little Python, and WAY TOO MUCH chocolate!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;THE END.&lt;/strong&gt; 💚&lt;/p&gt;




</description>
      <category>python</category>
      <category>necoz</category>
    </item>
    <item>
      <title>Cute Animals Made with Pure CSS 🐾</title>
      <dc:creator>Sᴛᴀʀ⭐</dc:creator>
      <pubDate>Wed, 25 Nov 2026 07:00:37 +0000</pubDate>
      <link>https://dev.to/startupcafe/cute-animals-made-with-pure-css-5fdh</link>
      <guid>https://dev.to/startupcafe/cute-animals-made-with-pure-css-5fdh</guid>
      <description>&lt;div class="crayons-card c-embed"&gt;

  

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fafwhct9oqe7qqds74lou.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fafwhct9oqe7qqds74lou.webp" alt="Image dhuescription" width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Animals are little wonders of nature! 🐾 From playful puppies and adorable kittens to colorful butterflies and beautiful birds, every animal has its own charm. Their cute faces, unique shapes, and lovely colors make them wonderful inspirations for creativity. Through CSS art, we can bring these adorable creatures to life using nothing but HTML and CSS. Let's turn simple code into something cute, creative, and full of life! ❤️🎨&lt;br&gt;
&lt;/p&gt;


&lt;/div&gt;
&lt;br&gt;





&lt;h2&gt;
  
  
  Table of Contents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;My Idea&lt;/li&gt;
&lt;li&gt;CSS Art&lt;/li&gt;
&lt;li&gt;Thank You&lt;/li&gt;
&lt;li&gt;Connect With Me &lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  My Idea
&lt;/h1&gt;

&lt;p&gt;While exploring the internet, I came across some really cute animal CSS art. I loved their adorable designs, beautiful colors, and creative details. I wanted to share these lovely creations with you. Hope you enjoy them! ❤️🐱🐶&lt;/p&gt;

&lt;h1&gt;
  
  
  CSS Art
&lt;/h1&gt;

&lt;p&gt;🐼 First up is this adorable little panda! Just look at that cute face, tiny ears, and lovely black-and-white colors. Isn't it absolutely precious? I instantly fell in love with this little bundle of cuteness!&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;iframe height="600" src="https://codepen.io/alvaromontoro/embed/JoYbaMQ?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;

&lt;/h2&gt;

&lt;p&gt;🐱 Next comes this adorable little kitty! Look at those tiny ears, sweet little face, and charming expressions. It's impossible not to fall in love with this fluffy little cutie!😍&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;iframe height="600" src="https://codepen.io/alvaromontoro/embed/zxvxbBv?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;

&lt;/h2&gt;

&lt;p&gt;🐶 Here comes this sweet little dog! Just look at those adorable eyes, cute little ears, and innocent face. This furry little friend is full of charm and happiness. Who could resist such a lovable cutie? 🥹❤️🐾&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;iframe height="600" src="https://codepen.io/Kozelskiy/embed/QpYooq?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;

&lt;/h2&gt;

&lt;p&gt;🦊 Meet this little adorable fox! With its fluffy tail, pointy ears, and charming little face, this tiny fox is full of cuteness. Just look at this little sweetheart!🥰&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;iframe height="600" src="https://codepen.io/codehemu/embed/WbxrEMb?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;

&lt;/h2&gt;

&lt;p&gt;🦉 Say hello to this little night-time cutie! With its big round eyes, tiny beak, and fluffy little feathers, this adorable owl is simply stealing hearts. A little bundle of wisdom and cuteness!🥰&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;iframe height="600" src="https://codepen.io/m3uc/embed/eYzYxd?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;

&lt;/h2&gt;

&lt;p&gt;🐰 Oh my goodness, look at this adorable little bunny! Those long floppy ears, tiny nose, and sweet little face are just too precious. This fluffy little sweetheart is hopping straight into our hearts!😀&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;iframe height="600" src="https://codepen.io/Coding-Artist/embed/JjvNPbZ?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;

&lt;/h2&gt;

&lt;p&gt;🐢 Meet this tiny little turtle! With its cute shell, tiny legs, and sweet little face, this adorable creature is simply too precious. Slow steps, big cuteness, and a whole lot of love! 😍&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;iframe height="600" src="https://codepen.io/josetxu/embed/WNprEbw?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;

&lt;/h2&gt;

&lt;h1&gt;
  
  
  Thank You!💖
&lt;/h1&gt;

&lt;p&gt;Thank you so much for taking the time to explore these adorable little animal creations with me! 🐼🐱🐶&lt;br&gt;
I hope these cute designs brought a smile to your face and made your day a little brighter. Every little creation has its own charm, and I’m so happy to share this lovely collection with you.&lt;/p&gt;
&lt;h1&gt;
  
  
  Connect With Me
&lt;/h1&gt;


&lt;div class="crayons-card c-embed"&gt;

  

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbjljgaem1if5mfcfd6yp.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbjljgaem1if5mfcfd6yp.gif" alt="Image descrreeriptdion" width="498" height="498"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://github.com/stargshs" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F351585625%3Fv%3D4%3Fs%3D400" height="460" class="m-0" width="460"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://github.com/stargshs" rel="noopener noreferrer" class="c-link"&gt;
            stargshs (STAR) · GitHub
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            This star shines brightly✨. stargshs has one repository available. Follow their code on GitHub.
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.githubassets.com%2Ffavicons%2Ffavicon.svg" width="32" height="32"&gt;
          github.com
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;



&lt;/div&gt;


</description>
      <category>css</category>
      <category>tailwindcss</category>
      <category>html</category>
      <category>design</category>
    </item>
    <item>
      <title>Tuesday music</title>
      <dc:creator>Sᴛᴀʀ⭐</dc:creator>
      <pubDate>Tue, 24 Nov 2026 11:27:12 +0000</pubDate>
      <link>https://dev.to/necoz/tuesday-music-c52</link>
      <guid>https://dev.to/necoz/tuesday-music-c52</guid>
      <description>&lt;p&gt;Wait a minute! Did all the music disappear from DEV? Where are the songs and playlists? I think it's time to bring some music back to our community! That's why I'm introducing Tuesday Music! 🎶 Every Tuesday, let's share our favourite songs, discover new music, and enjoy each other's playlists&lt;/p&gt;

&lt;p&gt;&lt;iframe src="https://open.spotify.com/embed/playlist/6003cV1aWcXsdJ6fqRzVE4" width="100%" height="380px" allow="encrypted-media"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>music</category>
      <category>necoz</category>
    </item>
    <item>
      <title>🐱 NECOZ School Picnic When 30 Cats Went Crazy! 🚌Python Data Types</title>
      <dc:creator>Sᴛᴀʀ⭐</dc:creator>
      <pubDate>Sun, 22 Nov 2026 13:07:56 +0000</pubDate>
      <link>https://dev.to/necoz/necoz-school-picnic-when-30-cats-went-crazy-python-data-types-3b71</link>
      <guid>https://dev.to/necoz/necoz-school-picnic-when-30-cats-went-crazy-python-data-types-3b71</guid>
      <description>&lt;p&gt;It was 7 AM at NECOZ School. Everyone was excited because today was the biggest school picnic ever! 🥳&lt;/p&gt;

&lt;p&gt;All 30 Cats arrived at school with their bags. One brought chips, another brought chocolates, and one Cat even brought a pillow!&lt;/p&gt;

&lt;p&gt;But here was the biggest surprise: &lt;strong&gt;King Nyaomaru was also joining the picnic!&lt;/strong&gt; 👑&lt;/p&gt;

&lt;p&gt;The teacher shouted, "Everyone, get ready and find your seats!"&lt;/p&gt;

&lt;p&gt;One Cat replied, "Teacher, someone is already sleeping on my seat!" 😂&lt;/p&gt;

&lt;p&gt;And just like that, the NECOZ adventure began!&lt;/p&gt;

&lt;h2&gt;
  
  
  🔢 1. Integer – How Many Students?
&lt;/h2&gt;

&lt;p&gt;The teacher started counting all the Cats.&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;students&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;
&lt;span class="n"&gt;buses&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;An Integer stores whole numbers.&lt;/p&gt;

&lt;p&gt;King Nyaomaru said, "30 Students and 2 Buses! Perfect!"&lt;/p&gt;

&lt;p&gt;Suddenly, a Cat shouted, "Your Majesty! One Cat is sitting across THREE seats!" 😭&lt;/p&gt;

&lt;h2&gt;
  
  
  💰 2. Float – The Picnic Budget
&lt;/h2&gt;

&lt;p&gt;The King checked the picnic budget.&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;budget&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;1500.50&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A Float stores decimal numbers.&lt;/p&gt;

&lt;p&gt;The King said, "We have enough money for Pizza!"&lt;/p&gt;

&lt;p&gt;One Cat immediately shouted, "Please reserve TWO pizzas for me!" 🍕&lt;/p&gt;

&lt;h2&gt;
  
  
  💬 3. String – Everyone's Names
&lt;/h2&gt;

&lt;p&gt;The teacher opened the attendance register.&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;king&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Nyaomaru"&lt;/span&gt;
&lt;span class="n"&gt;school&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"NECOZ School"&lt;/span&gt;
&lt;span class="n"&gt;favorite_food&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Pizza"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A String stores text, such as names and words.&lt;/p&gt;

&lt;p&gt;The teacher asked, "Who is Nyaomaru?"&lt;/p&gt;

&lt;p&gt;All the Cats shouted together, "OUR KING!" 👑&lt;/p&gt;

&lt;h2&gt;
  
  
  🤔 4. Boolean – Is Everyone Present?
&lt;/h2&gt;

&lt;p&gt;The teacher checked the attendance.&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;all_students_present&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Boolean has only two possible values:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;True&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;False&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The teacher announced, "Everyone is here!"&lt;/p&gt;

&lt;p&gt;Suddenly, a voice came from the top of the bus.&lt;/p&gt;

&lt;p&gt;"TEACHER! I'M HERE TOO!" &lt;/p&gt;

&lt;h2&gt;
  
  
  🎒 5. List – The Lunch Box Army
&lt;/h2&gt;

&lt;p&gt;All the Cats opened their lunch boxes.&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;lunch_boxes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Pizza"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Burger"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Sandwich"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Juice"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A List stores multiple items in one variable.&lt;/p&gt;

&lt;p&gt;One Cat said, "My lunch box has something special!"&lt;/p&gt;

&lt;p&gt;The teacher asked, "What is it?"&lt;/p&gt;

&lt;p&gt;The Cat replied, "HUNGER!" &lt;/p&gt;

&lt;h2&gt;
  
  
  🔒 6. Tuple – The Picnic Schedule
&lt;/h2&gt;

&lt;p&gt;The teacher prepared the picnic schedule.&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;schedule&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Breakfast"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Games"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Lunch"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Photography"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A Tuple stores multiple items, but its elements cannot be changed after creation.&lt;/p&gt;

&lt;p&gt;The King said, "Excellent schedule!"&lt;/p&gt;

&lt;p&gt;One Cat asked, "Where is sleeping time?" 😴&lt;/p&gt;

&lt;h2&gt;
  
  
  📚 7. Dictionary – Student Information
&lt;/h2&gt;

&lt;p&gt;The teacher decided to record information about the King.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="n"&gt;king&lt;/span&gt; &lt;span class="err"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Nyaomaru"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"planet"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"NECOZ"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"color"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Green"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"role"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"King"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A Dictionary stores information in Key-Value pairs.&lt;/p&gt;

&lt;p&gt;The King said, "Wonderful! My entire information is in one place!"&lt;/p&gt;

&lt;h2&gt;
  
  
  🍎 8. Set – No Duplicate Fruits!
&lt;/h2&gt;

&lt;p&gt;The teacher asked everyone to write down their favourite fruits.&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;fruits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"Apple"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Mango"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Banana"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Apple"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A Set stores unique items. Duplicate values are automatically removed.&lt;/p&gt;

&lt;p&gt;So Apple appears only once!&lt;/p&gt;

&lt;p&gt;One Cat shouted, "But I WANT TWO MANGOS!" &lt;/p&gt;

&lt;h2&gt;
  
  
  🌳 9. NoneType – Nothing Assigned Yet!
&lt;/h2&gt;

&lt;p&gt;The teacher reserved a seat for a Cat, but its seat number was not decided yet.&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;seat_number&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;None&lt;/code&gt; represents the absence of a value.&lt;/p&gt;

&lt;p&gt;The Cat asked, "Teacher, where is my seat?"&lt;/p&gt;

&lt;p&gt;The teacher replied, "Don't worry! We will find one!" &lt;/p&gt;

&lt;h2&gt;
  
  
  🎉 THE BIG PICNIC TWIST!
&lt;/h2&gt;

&lt;p&gt;Finally, all the Cats reached the picnic spot.&lt;/p&gt;

&lt;p&gt;King Nyaomaru announced:&lt;/p&gt;

&lt;p&gt;"Today, nobody is allowed to do Coding!"&lt;/p&gt;

&lt;p&gt;But suddenly, one Cat opened its laptop.&lt;/p&gt;

&lt;p&gt;The King asked, "CODING? Even at a picnic?"&lt;/p&gt;

&lt;p&gt;The Cat replied:&lt;/p&gt;

&lt;p&gt;"Your Majesty, I am just learning Python!"&lt;/p&gt;

&lt;p&gt;The King thought for a moment and announced:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"FINE! FIRST PIZZA, THEN PYTHON!"&lt;/strong&gt; 🍕🐍&lt;/p&gt;

&lt;p&gt;And that was how the NECOZ School Picnic became legendary!&lt;/p&gt;




&lt;h2&gt;
  
  
  🧠 Python Data Types –
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Data Type&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Integer (&lt;code&gt;int&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;30&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Float (&lt;code&gt;float&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;1500.50&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;String (&lt;code&gt;str&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;"Nyaomaru"&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Boolean (&lt;code&gt;bool&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;True&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;List (&lt;code&gt;list&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;[1, 2, 3]&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tuple (&lt;code&gt;tuple&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;(1, 2, 3)&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dictionary (&lt;code&gt;dict&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;{"name": "Tom"}&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Set (&lt;code&gt;set&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;{1, 2, 3}&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NoneType&lt;/td&gt;
&lt;td&gt;&lt;code&gt;None&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

</description>
      <category>discuss</category>
      <category>python</category>
      <category>necoz</category>
    </item>
    <item>
      <title>🐱 The Function Factory of Necoz! ⚙️ | Learning Python Functions 🚀</title>
      <dc:creator>Sᴛᴀʀ⭐</dc:creator>
      <pubDate>Sat, 21 Nov 2026 04:37:50 +0000</pubDate>
      <link>https://dev.to/necoz/the-function-factory-of-necoz-learning-python-functions-2ikd</link>
      <guid>https://dev.to/necoz/the-function-factory-of-necoz-learning-python-functions-2ikd</guid>
      <description>&lt;h3&gt;
  
  
  🌟 Chapter 1: A New Mission from King Nyaomaru!
&lt;/h3&gt;

&lt;p&gt;Remember my previous adventures on Necoz?&lt;/p&gt;

&lt;p&gt;I survived the mysterious UFO, explored the UFO Kingdom, learned Python loops, and even experienced the biggest earthquake on Necoz!&lt;/p&gt;

&lt;p&gt;I thought I had finally earned a peaceful vacation.&lt;/p&gt;

&lt;p&gt;But suddenly...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BEEP! BEEP! BEEP! 🚨&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;My communicator started ringing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;KING NYAOMARU:&lt;/strong&gt; STAR! EMERGENCY! REPORT TO THE ROYAL PALACE IMMEDIATELY!&lt;/p&gt;

&lt;p&gt;I rushed to the palace.&lt;/p&gt;

&lt;p&gt;When I arrived, I saw hundreds of robots standing in a line.&lt;/p&gt;

&lt;p&gt;Some robots were printing welcome messages. Others were calculating food bills, while some were preparing delicious cat food.&lt;/p&gt;

&lt;p&gt;I looked at the king.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;STAR:&lt;/strong&gt; Your Majesty, why are all these robots doing the same tasks again and again?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;KING NYAOMARU:&lt;/strong&gt; Because every time we need to repeat a task, our engineers write the same code again! Our robot factory is becoming too slow!&lt;/p&gt;

&lt;p&gt;I smiled.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;STAR:&lt;/strong&gt; Your Majesty, don't worry! I know a magical Python trick that can solve this problem.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;KING NYAOMARU:&lt;/strong&gt; A magical trick? Tell me immediately!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;STAR:&lt;/strong&gt; It's called PYTHON FUNCTIONS! 🐍&lt;/p&gt;




&lt;h3&gt;
  
  
  ⚙️ Chapter 2: The Magic of Python Functions
&lt;/h3&gt;

&lt;p&gt;I opened my laptop and explained:&lt;/p&gt;

&lt;p&gt;A &lt;strong&gt;function&lt;/strong&gt; is a reusable block of code that performs a specific task.&lt;/p&gt;

&lt;p&gt;Instead of writing the same code repeatedly, we can write it once and use it whenever we need it.&lt;/p&gt;

&lt;p&gt;Let's create our first function!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Python Code:&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="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;greet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Welcome to Necoz!"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nf"&gt;greet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Welcome to Necoz!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;King Nyaomaru jumped from his throne!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;KING NYAOMARU:&lt;/strong&gt; WAIT! You wrote the message only once, but you can use it whenever you want?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;STAR:&lt;/strong&gt; Exactly, Your Majesty!&lt;/p&gt;

&lt;p&gt;Let's understand the code:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;def&lt;/code&gt; – The keyword used to define a function.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;greet&lt;/code&gt; – The name of our function.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;()&lt;/code&gt; – Parentheses used for parameters.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;:&lt;/code&gt; – Starts the function body.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Indentation&lt;/strong&gt; – Identifies the code inside the function.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;greet()&lt;/code&gt; – Calls the function and executes its code.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Remember:&lt;/strong&gt; Defining a function does not execute it. We must call the function to run it!&lt;/p&gt;

&lt;p&gt;King Nyaomaru immediately ordered all robots to learn this trick.&lt;/p&gt;

&lt;p&gt;Unfortunately, one robot misunderstood the instruction.&lt;/p&gt;

&lt;p&gt;It started greeting itself!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ROBOT:&lt;/strong&gt; Hello, Robo! Nice to meet you, Robo!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;STAR:&lt;/strong&gt; Okay... I think that robot needs a software update. 😂&lt;/p&gt;




&lt;h3&gt;
  
  
  🍗 Chapter 3: Hungry Cats and Function Parameters
&lt;/h3&gt;

&lt;p&gt;Just when I thought everything was under control...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;LAZY CAT:&lt;/strong&gt; STAR! I WANT FOOD!&lt;/p&gt;

&lt;p&gt;Then Milo appeared.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MILO:&lt;/strong&gt; I WANT FISH!&lt;/p&gt;

&lt;p&gt;And Luna appeared.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;LUNA:&lt;/strong&gt; I WANT Chicken!&lt;/p&gt;

&lt;p&gt;I looked at the king.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;STAR:&lt;/strong&gt; Your Majesty, we can use something called function parameters!&lt;/p&gt;

&lt;p&gt;I opened my laptop and wrote:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Python Code:&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="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;feed_cat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cat_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;food&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cat_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"received"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;food&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nf"&gt;feed_cat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Lazy Cat"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Fish"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;feed_cat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Milo"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Chicken"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;feed_cat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Luna"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Tuna"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Lazy Cat received Fish
Milo received Chicken
Luna received Tuna
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;King Nyaomaru looked surprised!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;KING NYAOMARU:&lt;/strong&gt; So one function can serve different cats with different food?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;STAR:&lt;/strong&gt; Exactly!&lt;/p&gt;

&lt;p&gt;Let's understand two important terms:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Parameters:&lt;/strong&gt; Variables written inside the function definition.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Arguments:&lt;/strong&gt; Actual values passed to the function when calling it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In our example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;cat_name&lt;/code&gt; and &lt;code&gt;food&lt;/code&gt; are parameters.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;"Lazy Cat"&lt;/code&gt; and &lt;code&gt;"Fish"&lt;/code&gt; are arguments.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now we can use the same function for hundreds of cats!&lt;/p&gt;

&lt;p&gt;Lazy Cat raised its paw.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;LAZY CAT:&lt;/strong&gt; Can I receive five meals?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;STAR:&lt;/strong&gt; YOUR MAJESTY, WE HAVE A NEW PROBLEM! 😂&lt;/p&gt;




&lt;h3&gt;
  
  
  🎣 Chapter 4: The Mystery of the Missing Fish – Python return
&lt;/h3&gt;

&lt;p&gt;Suddenly, the royal kitchen reported a serious problem.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ALL THE FISH SUPPLIES HAD DISAPPEARED!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;King Nyaomaru shouted:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;KING NYAOMARU:&lt;/strong&gt; STAR! FIND OUT HOW MANY FISH ARE LEFT!&lt;/p&gt;

&lt;p&gt;I smiled.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;STAR:&lt;/strong&gt; Don't worry! Python has another magical keyword called &lt;code&gt;return&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;return statement&lt;/strong&gt; sends a value back from a function.&lt;/p&gt;

&lt;p&gt;Let's create a function:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Python Code:&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="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;remaining_fish&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;total_fish&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;eaten_fish&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;total_fish&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;eaten_fish&lt;/span&gt;

&lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;remaining_fish&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;35&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Remaining fish:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Remaining fish: 65
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;KING NYAOMARU:&lt;/strong&gt; AMAZING! So return sends the result back?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;STAR:&lt;/strong&gt; Exactly, Your Majesty!&lt;/p&gt;

&lt;p&gt;Remember the difference:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;print()&lt;/code&gt; displays information on the screen.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;return&lt;/code&gt; sends a value back so that we can store it or use it in another calculation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;King Nyaomaru was finally able to calculate the remaining fish.&lt;/p&gt;

&lt;p&gt;Lazy Cat looked disappointed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;LAZY CAT:&lt;/strong&gt; ONLY 65 FISH? THAT'S TERRIBLE NEWS!&lt;/p&gt;




&lt;h3&gt;
  
  
  🤖 Chapter 5: The Robot Factory Gets Smarter!
&lt;/h3&gt;

&lt;p&gt;The royal engineers were now excited.&lt;/p&gt;

&lt;p&gt;They wanted to create a function that could calculate the power level of every robot.&lt;/p&gt;

&lt;p&gt;I showed them another example.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Python Code:&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="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;calculate_power&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;battery&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;power&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;battery&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;power&lt;/span&gt;

&lt;span class="n"&gt;robot1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;calculate_power&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;robot2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;calculate_power&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Robot 1 Power:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;robot1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Robot 2 Power:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;robot2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Robot 1 Power: 100
Robot 2 Power: 160
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;STAR:&lt;/strong&gt; See? We can reuse the same function with different arguments!&lt;/p&gt;

&lt;p&gt;The engineers cheered.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ENGINEERS:&lt;/strong&gt; WOW! WE DON'T NEED TO WRITE THE SAME CODE AGAIN AND AGAIN!&lt;/p&gt;

&lt;p&gt;King Nyaomaru stood up.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;KING NYAOMARU:&lt;/strong&gt; FROM TODAY, EVERY ROBOT MUST USE PYTHON FUNCTIONS!&lt;/p&gt;

&lt;p&gt;But suddenly...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BOOOOOOM! 💥&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Bad Cat entered the factory.&lt;/p&gt;

&lt;p&gt;It pressed a mysterious red button.&lt;/p&gt;

&lt;p&gt;The entire factory stopped working!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BAD CAT:&lt;/strong&gt; HAHAHA! Let's see who can save the factory now!&lt;/p&gt;




&lt;h3&gt;
  
  
  🚨 Chapter 6: The Final Challenge – Save the Factory!
&lt;/h3&gt;

&lt;p&gt;The factory computer displayed an error.&lt;/p&gt;

&lt;p&gt;The robots needed a function to calculate their final energy after charging.&lt;/p&gt;

&lt;p&gt;But the engineers had forgotten to write it!&lt;/p&gt;

&lt;p&gt;King Nyaomaru looked at me.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;KING NYAOMARU:&lt;/strong&gt; STAR! THIS IS YOUR FINAL TEST!&lt;/p&gt;

&lt;p&gt;I quickly opened my code editor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Python Code:&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="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;charge_robot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;current_energy&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;extra_energy&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;total_energy&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;current_energy&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;extra_energy&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;total_energy&lt;/span&gt;

&lt;span class="n"&gt;robot_energy&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;charge_robot&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;robot_energy&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Robot fully charged!"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Robot needs more energy!"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Robot fully charged!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Suddenly...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;THE FACTORY STARTED WORKING AGAIN!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;All the robots began dancing.&lt;/p&gt;

&lt;p&gt;Even Bad Cat joined them!&lt;/p&gt;

&lt;p&gt;King Nyaomaru stood up and announced:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;KING NYAOMARU:&lt;/strong&gt; CONGRATULATIONS, STAR! YOU HAVE MASTERED THE MAGIC OF PYTHON FUNCTIONS!&lt;/p&gt;

&lt;p&gt;I smiled.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;STAR:&lt;/strong&gt; Thank you, Your Majesty. But I think I deserve a vacation now!&lt;/p&gt;

&lt;p&gt;Suddenly, Lazy Cat shouted:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;LAZY CAT:&lt;/strong&gt; WAIT! WHO WILL WRITE A FUNCTION TO FEED ME?&lt;/p&gt;

&lt;p&gt;I immediately ran towards the UFO.&lt;/p&gt;

&lt;p&gt;Some missions are simply too dangerous! 🚀&lt;/p&gt;




</description>
      <category>beginners</category>
      <category>python</category>
      <category>necoz</category>
    </item>
    <item>
      <title>🌍 Say Hello in Your Language! 👋🏻</title>
      <dc:creator>Sᴛᴀʀ⭐</dc:creator>
      <pubDate>Fri, 20 Nov 2026 09:12:02 +0000</pubDate>
      <link>https://dev.to/necoz/say-hello-in-your-language-4ckf</link>
      <guid>https://dev.to/necoz/say-hello-in-your-language-4ckf</guid>
      <description>&lt;p&gt;𝐋𝐞𝐭'𝐬 𝐦𝐚𝐤𝐞 𝐭𝐡𝐢𝐬 𝐜𝐨𝐦𝐦𝐮𝐧𝐢𝐭𝐲 𝐦𝐨𝐫𝐞 𝐜𝐨𝐧𝐧𝐞𝐜𝐭𝐞𝐝 𝐭𝐡𝐫𝐨𝐮𝐠𝐡 𝐨𝐮𝐫 𝐥𝐚𝐧𝐠𝐮𝐚𝐠𝐞𝐬! ❤️🌍&lt;/p&gt;

&lt;p&gt;𝐄𝐯𝐞𝐫𝐲 𝐥𝐚𝐧𝐠𝐮𝐚𝐠𝐞 𝐡𝐚𝐬 𝐢𝐭𝐬 𝐨𝐰𝐧 𝐛𝐞𝐚𝐮𝐭𝐲, 𝐜𝐮𝐥𝐭𝐮𝐫𝐞, 𝐚𝐧𝐝 𝐢𝐝𝐞𝐧𝐭𝐢𝐭𝐲. 𝐀 𝐬𝐢𝐦𝐩𝐥𝐞 "𝐇𝐞𝐥𝐥𝐨" 𝐜𝐚𝐧 𝐛𝐫𝐢𝐧𝐠 𝐩𝐞𝐨𝐩𝐥𝐞 𝐟𝐫𝐨𝐦 𝐝𝐢𝐟𝐟𝐞𝐫𝐞𝐧𝐭 𝐜𝐨𝐫𝐧𝐞𝐫𝐬 𝐨𝐟 𝐭𝐡𝐞 𝐰𝐨𝐫𝐥𝐝 𝐭𝐨𝐠𝐞𝐭𝐡𝐞𝐫! ✨&lt;/p&gt;

&lt;p&gt;𝐈'𝐥𝐥 𝐬𝐭𝐚𝐫𝐭 𝐰𝐢𝐭𝐡 𝐦𝐲 𝐥𝐚𝐧𝐠𝐮𝐚𝐠𝐞:&lt;/p&gt;

&lt;p&gt;નમસ્તે!❤️&lt;/p&gt;

&lt;p&gt;𝐍𝐨𝐰 𝐢𝐭'𝐬 𝐲𝐨𝐮𝐫 𝐭𝐮𝐫𝐧! 👇&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcq1j21alb3rvo2b64mzy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcq1j21alb3rvo2b64mzy.gif" alt="Image deewscription" width="386" height="498"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🌸 𝐒𝐚𝐲 "𝐇𝐞𝐥𝐥𝐨" 𝐢𝐧 𝐲𝐨𝐮𝐫 𝐧𝐚𝐭𝐢𝐯𝐞 𝐥𝐚𝐧𝐠𝐮𝐚𝐠𝐞. 🌍  𝐓𝐞𝐚𝐜𝐡 𝐮𝐬 𝐨𝐧𝐞 𝐛𝐞𝐚𝐮𝐭𝐢𝐟𝐮𝐥 𝐰𝐨𝐫𝐝 𝐟𝐫𝐨𝐦 𝐲𝐨𝐮𝐫 𝐥𝐚𝐧𝐠𝐮𝐚𝐠𝐞!&lt;/p&gt;

&lt;p&gt;𝐋𝐞𝐭'𝐬 𝐟𝐢𝐥𝐥 𝐭𝐡𝐞 𝐜𝐨𝐦𝐦𝐞𝐧𝐭𝐬 𝐰𝐢𝐭𝐡 𝐥𝐨𝐯𝐞, 𝐥𝐚𝐧𝐠𝐮𝐚𝐠𝐞𝐬, 𝐚𝐧𝐝 𝐜𝐮𝐥𝐭𝐮𝐫𝐞𝐬! ❤️&lt;/p&gt;

&lt;p&gt;𝐃𝐢𝐟𝐟𝐞𝐫𝐞𝐧𝐭 𝐥𝐚𝐧𝐠𝐮𝐚𝐠𝐞𝐬, 𝐨𝐧𝐞 𝐠𝐥𝐨𝐛𝐚𝐥 𝐜𝐨𝐦𝐦𝐮𝐧𝐢𝐭𝐲! 🌎&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>watercooler</category>
      <category>programming</category>
      <category>necoz</category>
    </item>
    <item>
      <title>My First GitHub Issue &amp; My First Forem (DEV.to) Issue 🚀</title>
      <dc:creator>Sᴛᴀʀ⭐</dc:creator>
      <pubDate>Thu, 19 Nov 2026 08:06:29 +0000</pubDate>
      <link>https://dev.to/necoz/my-first-github-issue-my-first-forem-devto-issue-5eap</link>
      <guid>https://dev.to/necoz/my-first-github-issue-my-first-forem-devto-issue-5eap</guid>
      <description>&lt;p&gt;Hey everyone! 🎉&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqxi3xotj34zup7ex9lbz.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqxi3xotj34zup7ex9lbz.gif" alt="Image descripution" width="333" height="334"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8r2f5btydkc540gvb1vk.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8r2f5btydkc540gvb1vk.png" alt="Image descrihption" width="720" height="1257"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I have some exciting news to share!&lt;/p&gt;

&lt;p&gt;I created my &lt;strong&gt;first GitHub Issue&lt;/strong&gt; and my &lt;strong&gt;first Forem (DEV.to) Issue&lt;/strong&gt;. And honestly, I am super excited about it!&lt;/p&gt;


&lt;div class="ltag_github-liquid-tag"&gt;
  &lt;h1&gt;
    &lt;a href="https://github.com/forem/forem/issues/24805" rel="noopener noreferrer"&gt;
      &lt;img class="github-logo" alt="GitHub logo" src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg"&gt;
      &lt;span class="issue-title"&gt;
        When we embed a comment on DEV finding that particular comment within the entire post can be difficult
      &lt;/span&gt;
      &lt;span class="issue-number"&gt;#24805&lt;/span&gt;
    &lt;/a&gt;
  &lt;/h1&gt;
  &lt;div class="github-thread"&gt;
    &lt;div class="timeline-comment-header"&gt;
      &lt;a href="https://github.com/stargshs" rel="noopener noreferrer"&gt;
        &lt;img class="github-liquid-tag-img" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F351585625%3Fv%3D4" alt="stargshs avatar"&gt;
      &lt;/a&gt;
      &lt;div class="timeline-comment-header-text"&gt;
        &lt;strong&gt;
          &lt;a href="https://github.com/stargshs" rel="noopener noreferrer"&gt;stargshs&lt;/a&gt;
        &lt;/strong&gt; posted on &lt;a href="https://github.com/forem/forem/issues/24805" rel="noopener noreferrer"&gt;&lt;time&gt;Nov 17, 2026&lt;/time&gt;&lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="ltag-github-body"&gt;
      &lt;p&gt;When we embed a comment on DEV Community, we can find the original post, but finding that particular comment within the entire post can be difficult, especially when there are many comments. It would be helpful if the embedded comment included a direct link or an option to jump straight to that specific comment in the original discussion. This would save time and make it much easier for readers to find the exact comment and its context.&lt;/p&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/user-attachments/assets/58e19a39-14da-4a3d-9c15-4a953ffcf474"&gt;&lt;img width="716" height="531" alt="Screenshot_2026-11-17-17-31-12-31" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Fuser-attachments%2Fassets%2F58e19a39-14da-4a3d-9c15-4a953ffcf474"&gt;&lt;/a&gt;&lt;/p&gt;

    &lt;/div&gt;
    &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/forem/forem/issues/24805" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;It was a new experience for me. I learned how to create issues, explain things, and communicate with the community.&lt;/p&gt;

&lt;p&gt;A big thank you to &lt;strong&gt;Francis Sir&lt;/strong&gt; for helping and guiding me. Your support really means a lot! ❤️&lt;/p&gt;

&lt;p&gt;And also &lt;a class="mentioned-user" href="https://dev.to/dj29"&gt;@dj29&lt;/a&gt; bro❤️&lt;/p&gt;

&lt;p&gt;I am still learning, exploring, and improving my skills. Every new experience gives me a chance to learn something different.&lt;/p&gt;

&lt;p&gt;My first issues are done, and I am looking forward to many more contributions!&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://github.com/stargshs" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F351585625%3Fv%3D4%3Fs%3D400" height="460" class="m-0" width="460"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://github.com/stargshs" rel="noopener noreferrer" class="c-link"&gt;
            stargshs (STAR) · GitHub
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            This star shines brightly✨. stargshs has one repository available. Follow their code on GitHub.
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.githubassets.com%2Ffavicons%2Ffavicon.svg" width="32" height="32"&gt;
          github.com
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;Small steps, big dreams. This is just the beginning!&lt;/strong&gt; ⭐🚀&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>github</category>
      <category>devto</category>
      <category>necoz</category>
    </item>
    <item>
      <title>🌋 The Biggest Earthquake on necoz! 🐱 Python operator</title>
      <dc:creator>Sᴛᴀʀ⭐</dc:creator>
      <pubDate>Tue, 17 Nov 2026 09:51:09 +0000</pubDate>
      <link>https://dev.to/necoz/the-biggest-earthquake-on-necoz-python-operator-3ddo</link>
      <guid>https://dev.to/necoz/the-biggest-earthquake-on-necoz-python-operator-3ddo</guid>
      <description>&lt;h2&gt;
  
  
  🐱 Chapter 1: A Normal Day on necoz
&lt;/h2&gt;

&lt;p&gt;It was a beautiful morning on necoz.&lt;/p&gt;

&lt;p&gt;Thirty cats were enjoying their royal fish party. Some were dancing, some were sleeping, and one cat was trying to eat the invitation card. 💀&lt;/p&gt;

&lt;p&gt;King was relaxing on his royal throne.&lt;/p&gt;

&lt;p&gt;King: "What a peaceful day! I love my kingdom."&lt;/p&gt;

&lt;p&gt;Suddenly...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BOOOOOOOOOOOOOOM! 🌋💥&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The entire planet started shaking!&lt;/p&gt;

&lt;p&gt;Cats were flying everywhere. One landed inside a fish bucket, another crashed into a UFO, and one cat was still sleeping like nothing had happened.&lt;/p&gt;

&lt;p&gt;King: "WHAT IS HAPPENING?! WHO IS SHAKING MY KINGDOM?!"&lt;/p&gt;

&lt;p&gt;A little robot rushed into the palace.&lt;/p&gt;

&lt;p&gt;Robot: "Your Majesty! It's an earthquake! We need to calculate our emergency supplies!"&lt;/p&gt;

&lt;p&gt;King: "FIRST SAVE MY FISH! THEN SAVE THE PLANET!"&lt;/p&gt;

&lt;h2&gt;
  
  
  🐟 Chapter 2: The Great Fish Calculation
&lt;/h2&gt;

&lt;p&gt;The robot opened its laptop.&lt;/p&gt;

&lt;p&gt;Robot: "We have 30 cats, and every cat needs 5 fish. Let's calculate how many fish we need."&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;cats&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;
&lt;span class="n"&gt;fish_per_cat&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;

&lt;span class="n"&gt;total_fish&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;cats&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;fish_per_cat&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;total_fish&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;150
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Robot: "We need 150 fish!"&lt;/p&gt;

&lt;p&gt;King: "150?! ARE WE FEEDING CATS OR OPENING A FISH FACTORY?!"&lt;/p&gt;

&lt;p&gt;The robot explained that &lt;code&gt;*&lt;/code&gt; is a multiplication operator.&lt;/p&gt;

&lt;p&gt;Then King asked:&lt;/p&gt;

&lt;p&gt;"What if we find another 50 fish?"&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;fish&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;150&lt;/span&gt;
&lt;span class="n"&gt;extra_fish&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fish&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;extra_fish&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;200
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;King: "PERFECT! NOW I CAN RETIRE AS A FISH BUSINESSMAN!" 😂&lt;/p&gt;

&lt;h2&gt;
  
  
  🛸 Chapter 3: The UFO Invasion
&lt;/h2&gt;

&lt;p&gt;Suddenly, a mysterious UFO appeared above the palace.&lt;/p&gt;

&lt;p&gt;Inside were 10 alien cats.&lt;/p&gt;

&lt;p&gt;They wanted to join the royal party, but the security robot needed to check their fish supply.&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;alien_fish&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;alien_fish&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;alien_fish&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;alien_fish&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;alien_fish&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="mi"&gt;100&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;True
False
False
True
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Robot: "These are Comparison Operators. They compare two values and return True or False."&lt;/p&gt;

&lt;p&gt;King: "So Python can judge people?"&lt;/p&gt;

&lt;p&gt;Robot: "It judges values, Your Majesty."&lt;/p&gt;

&lt;p&gt;King: "Finally! Someone who understands my royal responsibilities!"&lt;/p&gt;

&lt;h2&gt;
  
  
  🤖 Chapter 4: The Cat Security System
&lt;/h2&gt;

&lt;p&gt;The alien cats wanted to enter the palace.&lt;/p&gt;

&lt;p&gt;But King had two rules:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Every cat needs a royal invitation.&lt;/li&gt;
&lt;li&gt;Every cat needs a security pass.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The robot wrote:&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;invitation&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;
&lt;span class="n"&gt;security_pass&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;invitation&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;security_pass&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;True
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Robot: "Both conditions are True, so the gate opens!"&lt;/p&gt;

&lt;p&gt;King: "EXCELLENT! LET THE CATS IN!"&lt;/p&gt;

&lt;p&gt;Robot also explained:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;and&lt;/code&gt; — Both conditions must be True.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;or&lt;/code&gt; — At least one condition must be True.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;not&lt;/code&gt; — Reverses True and False.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;King: "This is getting complicated. I only wanted to eat fish."&lt;/p&gt;

&lt;h2&gt;
  
  
  🌋 Chapter 5: The Second Earthquake!
&lt;/h2&gt;

&lt;p&gt;Just when everyone thought the disaster was over...&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BOOOOOOOOM!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Another earthquake!&lt;/p&gt;

&lt;p&gt;The robot checked the emergency fish supply.&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;fish&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;fish&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fish&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;150
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Robot: "&lt;code&gt;+=&lt;/code&gt; increases the existing value by adding another value."&lt;/p&gt;

&lt;p&gt;King: "Wonderful! Give me 150 fish!"&lt;/p&gt;

&lt;p&gt;Robot: "Your Majesty, those are numbers."&lt;/p&gt;

&lt;p&gt;King: "I KNOW! I CAN READ!"&lt;/p&gt;

&lt;p&gt;Suddenly, a tiny cat entered the control room.&lt;/p&gt;

&lt;p&gt;It pressed a giant red button.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BEEEEEEEEEP! 🚨&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Robot: "WARNING! ANOTHER EARTHQUAKE!"&lt;/p&gt;

&lt;p&gt;King: "WHO LET THAT CAT INTO THE CONTROL ROOM?!"&lt;/p&gt;

&lt;p&gt;Cat: "Meow."&lt;/p&gt;

&lt;p&gt;King: "I AM MOVING TO ANOTHER PLANET!" 😭&lt;/p&gt;

</description>
      <category>python</category>
      <category>discuss</category>
      <category>necoz</category>
    </item>
    <item>
      <title>🐱 The Great Cat Party on necoz Planet! 🚀Python variable</title>
      <dc:creator>Sᴛᴀʀ⭐</dc:creator>
      <pubDate>Sun, 15 Nov 2026 14:49:57 +0000</pubDate>
      <link>https://dev.to/necoz/the-great-cat-party-on-necoz-planet-python-variable-1cgf</link>
      <guid>https://dev.to/necoz/the-great-cat-party-on-necoz-planet-python-variable-1cgf</guid>
      <description>&lt;p&gt;Far away in the galaxy, there was a beautiful planet called &lt;strong&gt;necoz&lt;/strong&gt;. 🌌&lt;/p&gt;

&lt;p&gt;One day, the King of necoz announced something very exciting:&lt;/p&gt;

&lt;p&gt;📢 &lt;strong&gt;Attention, everyone! Today we are hosting the biggest Cat Party in the entire galaxy! All cats are invited!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Cats from different galaxies started arriving. Some came by UFO, some came by spaceship, and one cat even arrived on a flying pizza! 🍕&lt;/p&gt;

&lt;h2&gt;
  
  
  🛸 Scene 1: 30 Cats and a Confused King
&lt;/h2&gt;

&lt;p&gt;The party finally started.&lt;/p&gt;

&lt;p&gt;The King looked around and shouted:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WHAT?! There are 30 cats here! Who is going to count all of them?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Suddenly, a little cat wearing sunglasses said:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bro, just use Python!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The King opened his laptop and wrote:&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;cats&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;

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

&lt;/div&gt;



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

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

&lt;/div&gt;



&lt;p&gt;The King: "WOW! Python counted them without even asking for their names!"&lt;/p&gt;

&lt;p&gt;And that's how the King discovered &lt;strong&gt;Variables&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;A variable is like a container that stores information.&lt;/p&gt;

&lt;p&gt;In this example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;cats&lt;/code&gt; is the variable name.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;30&lt;/code&gt; is the value.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;=&lt;/code&gt; is the assignment operator.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🍕 Scene 2: 10 More Hungry Cats!
&lt;/h2&gt;

&lt;p&gt;Suddenly, a UFO landed near the party.&lt;/p&gt;

&lt;p&gt;10 more cats came out.&lt;/p&gt;

&lt;p&gt;Their leader shouted:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WE WANT FOOD! WE ARE STARVING!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The King replied:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bro, this is a party, not a free restaurant!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;He updated his Python code:&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;cats&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;

&lt;span class="n"&gt;cats&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;

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

&lt;/div&gt;



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

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

&lt;/div&gt;



&lt;p&gt;The King: "WAIT! We had 30 cats, and now we have 40!"&lt;/p&gt;

&lt;p&gt;That's the magic of variables. We can change the value stored in a variable.&lt;/p&gt;

&lt;h2&gt;
  
  
  🎂 Scene 3: The Great Cake Disaster
&lt;/h2&gt;

&lt;p&gt;The King ordered 5 cakes for the party.&lt;/p&gt;

&lt;p&gt;But one cat grabbed a cake and shouted:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;THIS CAKE IS MINE!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Another cat replied:&lt;br&gt;
&lt;strong&gt;NO! I SAW IT FIRST!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Meanwhile, a third cat(&lt;a class="mentioned-user" href="https://dev.to/hanzla"&gt;@hanzla&lt;/a&gt; ) was already escaping with the entire cake box. 😂&lt;/p&gt;

&lt;p&gt;The King decided to store the information in separate variables.&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;cats&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;
&lt;span class="n"&gt;cakes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cats&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cakes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

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

&lt;/div&gt;



&lt;p&gt;Now Python knows that there are 40 cats and 5 cakes.&lt;/p&gt;

&lt;p&gt;Each variable stores its own value.&lt;/p&gt;

&lt;h2&gt;
  
  
  😹 Scene 4: Different Types of Data
&lt;/h2&gt;

&lt;p&gt;The King wanted to record more information about the party.&lt;/p&gt;

&lt;p&gt;So he wrote:&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;planet&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"necoz"&lt;/span&gt;
&lt;span class="n"&gt;cats&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;
&lt;span class="n"&gt;party_started&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;
&lt;span class="n"&gt;cake_price&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;250.50&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;His assistant cat asked:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why do these values look different?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The King explained:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Variable&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Data Type&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;planet&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;"necoz"&lt;/td&gt;
&lt;td&gt;String&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cats&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;40&lt;/td&gt;
&lt;td&gt;Integer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;party_started&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;True&lt;/td&gt;
&lt;td&gt;Boolean&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cake_price&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;250.50&lt;/td&gt;
&lt;td&gt;Float&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Let's understand them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;String:&lt;/strong&gt; Stores text or words.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Integer:&lt;/strong&gt; Stores whole numbers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Boolean:&lt;/strong&gt; Stores &lt;code&gt;True&lt;/code&gt; or &lt;code&gt;False&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Float:&lt;/strong&gt; Stores decimal numbers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The cat replied:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OMG! So I can also become a variable?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The King: "Yes, but please stop eating the cake!" 😂&lt;/p&gt;

&lt;h2&gt;
  
  
  💻 Scene 5: The Final Python Experiment
&lt;/h2&gt;

&lt;p&gt;The King decided to display all the party information together.&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;planet&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"necoz"&lt;/span&gt;
&lt;span class="n"&gt;cats&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;
&lt;span class="n"&gt;cakes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;
&lt;span class="n"&gt;party_started&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Welcome to"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;planet&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Total Cats:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cats&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Total Cakes:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cakes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Party Started:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;party_started&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Welcome to necoz
Total Cats: 40
Total Cakes: 5
Party Started: True
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The King shouted:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;FINALLY! I AM A PYTHON DEVELOPER!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;But suddenly, a cat &lt;a class="mentioned-user" href="https://dev.to/effessdev"&gt;@effessdev&lt;/a&gt; interrupted:&lt;br&gt;
&lt;strong&gt;Developer later, bro. First, order 40 more cakes!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;And that's how the biggest cat party in the galaxy continued all night. 🐱🎉&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>python</category>
      <category>programming</category>
      <category>beginners</category>
    </item>
    <item>
      <title>🛸 Necoz: The UFO Kingdom Python Loops 🐱</title>
      <dc:creator>Sᴛᴀʀ⭐</dc:creator>
      <pubDate>Fri, 13 Nov 2026 12:55:05 +0000</pubDate>
      <link>https://dev.to/necoz/necoz-the-ufo-kingdom-python-loops-hd1</link>
      <guid>https://dev.to/necoz/necoz-the-ufo-kingdom-python-loops-hd1</guid>
      <description>&lt;h2&gt;
  
  
  Chapter 1: A Mysterious UFO Appears
&lt;/h2&gt;

&lt;p&gt;It was an ordinary evening. I was sitting peacefully, exploring the world of coding, when suddenly something strange appeared in the sky.&lt;/p&gt;

&lt;p&gt;A mysterious &lt;strong&gt;UFO&lt;/strong&gt;!&lt;/p&gt;

&lt;p&gt;It had huge letters written on it:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NECOZ&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I stared at it for a moment. Before I could even understand what was happening, a bright beam of light came out of the &lt;strong&gt;spaceship&lt;/strong&gt; and pulled me inside.&lt;/p&gt;

&lt;p&gt;"HEY! WHERE ARE YOU TAKING ME? I DIDN'T EVEN BUY A TICKET!"&lt;/p&gt;

&lt;p&gt;When I finally opened my eyes, I found myself in a completely different world.&lt;/p&gt;

&lt;p&gt;There were talking cats, strange robots, flying machines, and creatures I couldn't even identify.&lt;/p&gt;

&lt;p&gt;Suddenly, a cat wearing sunglasses approached me.&lt;/p&gt;

&lt;p&gt;"Welcome to Necoz!"&lt;/p&gt;

&lt;p&gt;I looked at it and asked, "Wait... a talking cat? Is this normal here?"&lt;/p&gt;

&lt;p&gt;The cat replied, "Of course! You're the strange one here."&lt;/p&gt;

&lt;p&gt;I decided not to argue with a cat.&lt;/p&gt;

&lt;p&gt;I asked, "Who rules this place?"&lt;/p&gt;

&lt;p&gt;The cat immediately bowed.&lt;/p&gt;

&lt;p&gt;"All hail our great King nyaomaru !"&lt;/p&gt;

&lt;p&gt;And that was how my unexpected adventure inside the Necoz UFO began.&lt;/p&gt;

&lt;h2&gt;
  
  
  Chapter 2: King nyaomaru 's Impossible Task
&lt;/h2&gt;

&lt;p&gt;A few minutes later, I was taken to the royal chamber.&lt;/p&gt;

&lt;p&gt;King nyaomaru  was sitting on a huge golden throne. In front of him was a computer surrounded by hundreds of buttons.&lt;/p&gt;

&lt;p&gt;He looked at me and said:&lt;/p&gt;

&lt;p&gt;"So, you're our new member? Let's see what you can do!"&lt;/p&gt;

&lt;p&gt;I nodded confidently.&lt;/p&gt;

&lt;p&gt;He pointed towards a room full of 100 cats.&lt;/p&gt;

&lt;p&gt;"I want you to greet every single cat. Say hello to all 100 of them!"&lt;/p&gt;

&lt;p&gt;I looked at him.&lt;/p&gt;

&lt;p&gt;"Seriously? You want me to say hello 100 times?"&lt;/p&gt;

&lt;p&gt;King nyaomaru  replied, "Yes! That's your first mission."&lt;/p&gt;

&lt;p&gt;I sighed.&lt;/p&gt;

&lt;p&gt;"Your Majesty, have you never heard of Python Loops?"&lt;/p&gt;

&lt;p&gt;He looked confused.&lt;/p&gt;

&lt;p&gt;"Loops? Is that some kind of new spaceship?"&lt;/p&gt;

&lt;p&gt;I laughed.&lt;/p&gt;

&lt;p&gt;"No, Your Majesty! A loop allows us to repeat a task without writing the same code again and again."&lt;/p&gt;

&lt;p&gt;I opened my laptop(I have no laptop😢) and showed him:&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;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Hello NecoZ!"&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;Hello NecoZ!
Hello NecoZ!
Hello NecoZ!
Hello NecoZ!
Hello NecoZ!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;King nyaomaru  jumped out of his throne.&lt;/p&gt;

&lt;p&gt;"WHAT?! Five greetings with just three lines of code?"&lt;/p&gt;

&lt;p&gt;I replied, "Exactly! That's the magic of loops."&lt;/p&gt;

&lt;p&gt;He immediately ordered his royal assistant to cancel the 100-cat greeting duty.&lt;/p&gt;

&lt;h2&gt;
  
  
  Chapter 3: The For Loop and the Hungry Cats
&lt;/h2&gt;

&lt;p&gt;King nyaomaru  had another problem.&lt;/p&gt;

&lt;p&gt;He had five cats waiting for food.&lt;/p&gt;

&lt;p&gt;"Can you feed all of them?" he asked.&lt;/p&gt;

&lt;p&gt;"Of course!" I replied.&lt;/p&gt;

&lt;p&gt;I created a list of their 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;cats&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Milo"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Luna"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Tom"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Kitty"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Leob"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;cat&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;cats&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cat&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"got food!"&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;Milo got food!
Luna got food!
Tom got food!
Kitty got food!
Leob got food!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I explained:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;cats&lt;/code&gt; is a list containing five cat names.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;for&lt;/code&gt; tells Python to go through the list.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;cat&lt;/code&gt; represents the current item.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;print()&lt;/code&gt; displays the name and message.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The loop takes one cat at a time and performs the same task for each one.&lt;/p&gt;

&lt;p&gt;King nyaomaru  was impressed.&lt;/p&gt;

&lt;p&gt;"So I don't have to write separate instructions for every cat?"&lt;/p&gt;

&lt;p&gt;"Exactly!"&lt;/p&gt;

&lt;p&gt;Suddenly, Tom raised his paw.&lt;/p&gt;

&lt;p&gt;"Excuse me! I received my food, but where is my dessert?"&lt;/p&gt;

&lt;p&gt;I looked at King nyaomaru .&lt;/p&gt;

&lt;p&gt;"Your Majesty, I think this cat needs a separate food budget!"&lt;/p&gt;

&lt;h2&gt;
  
  
  Chapter 4: The Magic of range()
&lt;/h2&gt;

&lt;p&gt;King nyaomaru  wanted to learn something new.&lt;/p&gt;

&lt;p&gt;"Can Python count from 1 to 10?"&lt;/p&gt;

&lt;p&gt;I replied, "Of course! We can use &lt;code&gt;range()&lt;/code&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="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;number&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&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;11&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;number&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;1
2
3
4
5
6
7
8
9
10
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I explained:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;range(1, 11)&lt;/code&gt; generates numbers starting from 1 and ending at 10.&lt;/p&gt;

&lt;p&gt;But there's one important thing to remember:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The ending number is not included.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;King nyaomaru  looked confused.&lt;/p&gt;

&lt;p&gt;"Wait! So where did number 11 go?"&lt;/p&gt;

&lt;p&gt;I replied:&lt;/p&gt;

&lt;p&gt;"Number 11 wasn't invited to the party!"&lt;/p&gt;

&lt;p&gt;He nodded seriously.&lt;/p&gt;

&lt;p&gt;"Poor number 11."&lt;/p&gt;

&lt;h2&gt;
  
  
  Chapter 5: The While Loop and the Stubborn Cat
&lt;/h2&gt;

&lt;p&gt;The next morning, King nyaomaru  called me again.&lt;/p&gt;

&lt;p&gt;"We have a serious problem. There's a cat named Lazy Cat. It keeps asking for food until it gets three meals!"&lt;/p&gt;

&lt;p&gt;I looked at the cat.&lt;/p&gt;

&lt;p&gt;It was already sleeping beside an empty food bowl.&lt;/p&gt;

&lt;p&gt;I said, "This sounds like a perfect situation for a &lt;code&gt;while&lt;/code&gt; loop."&lt;/p&gt;

&lt;p&gt;I wrote:&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;food&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;

&lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="n"&gt;food&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Cat wants food!"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;food&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Cat is happy!"&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;Cat wants food!
Cat wants food!
Cat wants food!
Cat is happy!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I explained:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;food = 0&lt;/code&gt; sets the starting value.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;while food &amp;lt; 3&lt;/code&gt; is the condition.&lt;/li&gt;
&lt;li&gt;The loop continues as long as the condition is True.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;food += 1&lt;/code&gt; increases the value by one each time.&lt;/li&gt;
&lt;li&gt;When food becomes 3, the condition becomes False, and the loop stops.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;King nyaomaru  smiled.&lt;/p&gt;

&lt;p&gt;"So the cat gets three meals and finally becomes happy?"&lt;/p&gt;

&lt;p&gt;I replied, "Yes, Your Majesty."&lt;/p&gt;

&lt;p&gt;Lazy Cat suddenly opened one eye.&lt;/p&gt;

&lt;p&gt;"Actually, I was hoping for five meals."&lt;/p&gt;

&lt;p&gt;I closed my laptop.&lt;/p&gt;

&lt;p&gt;"Your Majesty, I think we have a serious financial problem."&lt;/p&gt;

&lt;h2&gt;
  
  
  Chapter 6: Infinite Loop – The UFO Disaster!
&lt;/h2&gt;

&lt;p&gt;Suddenly, the spaceship's alarm started ringing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WARNING! WARNING! SYSTEM OVERLOAD!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A robot was standing in the middle of the room, repeating the same sentence:&lt;/p&gt;

&lt;p&gt;"HELLO NECOZ! HELLO NECOZ! HELLO NECOZ!"&lt;/p&gt;

&lt;p&gt;King nyaomaru  shouted:&lt;/p&gt;

&lt;p&gt;"MAKE IT STOP!"&lt;/p&gt;

&lt;p&gt;I quickly checked the robot's code.&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;while&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Hello Necoz!"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I explained:&lt;/p&gt;

&lt;p&gt;"Your Majesty, this is an Infinite Loop!"&lt;/p&gt;

&lt;p&gt;"What's that?"&lt;/p&gt;

&lt;p&gt;"It's a loop that never stops because its condition is always True."&lt;/p&gt;

&lt;p&gt;King nyaomaru  looked at the robot.&lt;/p&gt;

&lt;p&gt;"So this machine will keep saying Hello forever?"&lt;/p&gt;

&lt;p&gt;"Unless we stop it!"&lt;/p&gt;

&lt;p&gt;I fixed the code:&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;count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;

&lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="n"&gt;count&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Hello NecoZ!"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;count&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now the robot would say Hello only five times.&lt;/p&gt;

&lt;p&gt;King nyaomaru  sighed with relief.&lt;/p&gt;

&lt;p&gt;"Thank goodness! I was about to throw this robot into space."&lt;/p&gt;

&lt;h2&gt;
  
  
  Chapter 7: Break and Continue – The Cat Problem
&lt;/h2&gt;

&lt;p&gt;Just when I thought everything was peaceful, King nyaomaru  brought another challenge.&lt;/p&gt;

&lt;p&gt;"Five cats are standing in a line. But one of them is extremely naughty. If that cat appears, stop the entire process!"&lt;/p&gt;

&lt;p&gt;I replied:&lt;/p&gt;

&lt;p&gt;"That's exactly what &lt;code&gt;break&lt;/code&gt; does!"&lt;/p&gt;

&lt;p&gt;I wrote:&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;cats&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Milo"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Luna"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Tom"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Bad Cat"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Leo"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;cat&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;cats&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;cat&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"Bad Cat"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;break&lt;/span&gt;

    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cat&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;Milo
Luna
Tom
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I explained:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;break&lt;/code&gt; immediately stops the entire loop.&lt;/p&gt;

&lt;p&gt;King nyaomaru  nodded.&lt;/p&gt;

&lt;p&gt;"Excellent! Bad Cat has been removed from the operation!"&lt;/p&gt;

&lt;p&gt;Then I introduced another concept.&lt;/p&gt;

&lt;p&gt;"But what if we don't want to stop the entire loop? What if we just want to skip one cat?"&lt;/p&gt;

&lt;p&gt;"How is that possible?" he asked.&lt;/p&gt;

&lt;p&gt;I smiled.&lt;/p&gt;

&lt;p&gt;"Meet &lt;code&gt;continue&lt;/code&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;cats&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Milo"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Luna"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Tom"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Bad Cat"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Leo"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;cat&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;cats&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;cat&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"Bad Cat"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;continue&lt;/span&gt;

    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cat&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;Milo
Luna
Tom
Leo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I explained:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;continue&lt;/code&gt; skips the current iteration and moves to the next item.&lt;/p&gt;

&lt;p&gt;King nyaomaru  laughed.&lt;/p&gt;

&lt;p&gt;"So we ignore Bad Cat but continue feeding everyone else?"&lt;/p&gt;

&lt;p&gt;"Exactly!"&lt;/p&gt;

&lt;p&gt;Bad Cat looked offended.&lt;/p&gt;

&lt;p&gt;"That's discrimination!"&lt;/p&gt;

&lt;p&gt;I replied, "No, that's Python!"&lt;/p&gt;

&lt;h2&gt;
  
  
  Chapter 8: The Final Mission
&lt;/h2&gt;

&lt;p&gt;After several days of learning, King nyaomaru  decided to test my skills.&lt;/p&gt;

&lt;p&gt;He called all five robots into the royal chamber.&lt;/p&gt;

&lt;p&gt;"Your final mission is to display every robot's number and name!"&lt;/p&gt;

&lt;p&gt;I opened my laptop and used another useful Python tool called &lt;code&gt;enumerate()&lt;/code&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;robots&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Robo1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Robo2"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Robo3"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Robo4"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Robo5"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;number&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;robot&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;enumerate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;robots&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;number&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;robot&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"is ready!"&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;1 Robo1 is ready!
2 Robo2 is ready!
3 Robo3 is ready!
4 Robo4 is ready!
5 Robo5 is ready!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I explained:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;enumerate()&lt;/code&gt; lets us access both the index and the item while looping through a collection.&lt;/p&gt;

&lt;p&gt;King nyaomaru  stood up from his throne.&lt;/p&gt;

&lt;p&gt;"Congratulations! From today, you are officially the Python Loop Expert of Necoz!"&lt;/p&gt;

&lt;p&gt;All the cats started cheering.&lt;/p&gt;

&lt;p&gt;Even Bad Cat clapped, although it secretly wanted to delete my code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Chapter 9: A New Adventure Begins
&lt;/h2&gt;

&lt;p&gt;I thought my mission was finally over.&lt;/p&gt;

&lt;p&gt;But then King nyaomaru  announced:&lt;/p&gt;

&lt;p&gt;"Our next mission will be about Python Functions!"&lt;/p&gt;

&lt;p&gt;I looked at him and said:&lt;/p&gt;

&lt;p&gt;"Wait! Can I get at least one day off?"&lt;/p&gt;

&lt;p&gt;He replied:&lt;/p&gt;

&lt;p&gt;"Of course! But Lazy Cat will be your replacement."&lt;/p&gt;

&lt;p&gt;I immediately opened my laptop.&lt;/p&gt;

&lt;p&gt;"NO! I'll take the next mission!"&lt;/p&gt;

&lt;p&gt;Everyone started laughing.&lt;/p&gt;

&lt;p&gt;And that was how I learned Python Loops inside the mysterious Necoz UFO.&lt;/p&gt;

&lt;p&gt;But my adventure was far from over.&lt;/p&gt;

&lt;p&gt;There were many more coding mysteries waiting for me.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To be continued... 🛸🐱&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  🐍 What Did We Learn?
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Python Concept&lt;/th&gt;
&lt;th&gt;What It Does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Loop&lt;/td&gt;
&lt;td&gt;Repeats a task&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;For Loop&lt;/td&gt;
&lt;td&gt;Iterates over a sequence&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;While Loop&lt;/td&gt;
&lt;td&gt;Runs while a condition is True&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;range()&lt;/td&gt;
&lt;td&gt;Generates a sequence of numbers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Infinite Loop&lt;/td&gt;
&lt;td&gt;Continues without stopping&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;break&lt;/td&gt;
&lt;td&gt;Terminates the loop&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;continue&lt;/td&gt;
&lt;td&gt;Skips the current iteration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;enumerate()&lt;/td&gt;
&lt;td&gt;Provides both index and item&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Even the smartest king needs a little Python magic!&lt;/strong&gt; 👑🐍&lt;/p&gt;

&lt;p&gt;— A Necoz Member 🛸&lt;/p&gt;

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