<?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: Mary Nyandia</title>
    <description>The latest articles on DEV Community by Mary Nyandia (@nyandiatech).</description>
    <link>https://dev.to/nyandiatech</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3378638%2F51f6b3e1-b902-4e61-a053-c9d1e8d8ff2e.jpg</url>
      <title>DEV Community: Mary Nyandia</title>
      <link>https://dev.to/nyandiatech</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nyandiatech"/>
    <language>en</language>
    <item>
      <title>Understanding Variables</title>
      <dc:creator>Mary Nyandia</dc:creator>
      <pubDate>Thu, 28 May 2026 09:18:31 +0000</pubDate>
      <link>https://dev.to/nyandiatech/understanding-variables-42ln</link>
      <guid>https://dev.to/nyandiatech/understanding-variables-42ln</guid>
      <description>&lt;p&gt;Today I explored one of the most important building blocks in Python ; variables. Variables are like containers that store information we can use later in our program. They make our code dynamic and reusable.&lt;/p&gt;

&lt;h1&gt;
  
  
  ✨ What I Learned
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;1. Declaring Variables&lt;/strong&gt;&lt;br&gt;
You  can assign values to variables using the = operator:&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;first_name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Asabeneh&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;
&lt;span class="n"&gt;last_name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Yetayeh&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;
&lt;span class="n"&gt;country&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Finland&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;
&lt;span class="n"&gt;city&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Helsinki&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;
&lt;span class="n"&gt;age&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;250&lt;/span&gt;
&lt;span class="n"&gt;is_married&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, I stored text (strings), numbers (integers), and even a boolean (True/False).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Storing Collections&lt;/strong&gt;&lt;br&gt;
Variables can also hold lists and dictionaries:&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;skills&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;HTML&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;CSS&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;JS&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;React&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Python&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;person_info&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;firstname&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Asabeneh&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;lastname&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Yetayeh&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;country&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Finland&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;city&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Helsinki&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is powerful because it lets us group related information together.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Printing Values&lt;/strong&gt;&lt;br&gt;
Using print(), I displayed the values stored in 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="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;First name:&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;first_name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Skills:&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;skills&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Person information:&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;person_info&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;4. Declaring Multiple Variables in One Line&lt;/strong&gt;&lt;br&gt;
Python makes it easy to declare several variables at once:&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;first_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;last_name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;country&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;age&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;is_married&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Asabeneh&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Yetayeh&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Helsinki&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;250&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is a neat shortcut when you want to initialize multiple values quickly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🎯 My Take&lt;/strong&gt;&lt;br&gt;
Variables are the foundation of Python programming. They let us store, organize, and manipulate data in flexible ways. Whether it’s a single number or a collection of skills, variables make our programs meaningful.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Mastering the print() Function in Python</title>
      <dc:creator>Mary Nyandia</dc:creator>
      <pubDate>Thu, 28 May 2026 08:53:23 +0000</pubDate>
      <link>https://dev.to/nyandiatech/mastering-the-print-function-in-python-3afp</link>
      <guid>https://dev.to/nyandiatech/mastering-the-print-function-in-python-3afp</guid>
      <description>&lt;p&gt;When learning Python, one of the very first functions you’ll use is print(). It may look simple, but it’s incredibly powerful and flexible. On Day 3 of my Python journey, I decided to dive deeper into how print() works and all the ways you can use it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;✨ What is print()?&lt;/strong&gt;&lt;br&gt;
The print() function displays information on the screen. It can show text, numbers, variables, or even complex data structures. Think of it as your program’s way of “talking back” to you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.Printing Text&lt;/strong&gt;&lt;br&gt;
The simplest use of print() is to display text. By wrapping words in quotes, Python knows you want to show them exactly as written. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hello, Python!&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output: Hello, Python!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Printing Variables&lt;/strong&gt;&lt;br&gt;
Variables store data, and print() lets you see what’s inside them.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Mary&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;age&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;28&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Name:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Age:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;age&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output: Name: Mary  Age: 28&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Printing Multiple Items&lt;/strong&gt;&lt;br&gt;
Sometimes you want to display several things at once. print() allows you to pass multiple items separated by commas. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Python&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;is&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;fun&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output: Python is fun.&lt;br&gt;
Python automatically adds spaces between items, so you don’t need to worry about formatting them manually.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4.Using f‑strings (Formatted Strings)&lt;/strong&gt;&lt;br&gt;
F‑strings are one of Python’s most powerful features for printing. They let you embed variables directly inside text using curly braces {}. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Mary&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="n"&gt;age&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;28&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;My name is &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; and I am &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;age&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s"&gt; years old.&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output: My name is Mary and I am 28 years old.&lt;br&gt;
F‑strings make your output cleaner and easier to read compared to using commas.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Special Parameters in print()&lt;/strong&gt;&lt;br&gt;
The print() function has optional arguments that give you more control:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;(sep) changes the separator between items. For example:
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Python&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;is&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;fun&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sep&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;-&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Outputs: Python-is-fun.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;(end) changes what happens at the end of the line. By default, print() ends with a new line, but you can override it:
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hello&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;end&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt; &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;World&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Output: Hello World on one line&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;(file) lets you send output to a file instead of the screen, which is useful for logging.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;6. Escape Characters&lt;/strong&gt;&lt;br&gt;
Escape characters let you format text in special ways. For example, \n creates a new line, and \t adds a tab space.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Line1&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;Line2&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Tab&lt;/span&gt;&lt;span class="se"&gt;\t&lt;/span&gt;&lt;span class="s"&gt;Space&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Line1
Line2
Tab    Space

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These little tricks make your output more readable and professional.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🎯My Take&lt;/strong&gt;&lt;br&gt;
The print() function may look simple, but it’s incredibly versatile. From showing text and variables to formatting output with f‑strings, separators, and escape characters, mastering print() early will make your Python journey smoother. It’s not just about displaying information , it’s about communicating clearly with your code.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Understanding Python Data Types: A Beginner’s Guide</title>
      <dc:creator>Mary Nyandia</dc:creator>
      <pubDate>Wed, 27 May 2026 20:42:39 +0000</pubDate>
      <link>https://dev.to/nyandiatech/understanding-python-data-types-a-beginners-guide-3530</link>
      <guid>https://dev.to/nyandiatech/understanding-python-data-types-a-beginners-guide-3530</guid>
      <description>&lt;p&gt;When learning Python, one of the first things you’ll encounter is data types. Data types define the kind of values your program can work with whether it’s numbers, text, or logical values. In this article, I’ll walk you through the basics using a simple program that demonstrates Python’s core data types.&lt;/p&gt;

&lt;h1&gt;
  
  
  1.Integers (Whole Numbers)
&lt;/h1&gt;

&lt;p&gt;Integers are numbers without decimals. They can be positive, negative, or zero.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;age = 25
score = 100
temperature = -5

print(f"Age: {age}")
print(f"Score: {score}")
print(f"Temperature: {temperature}")
print(f"Type of age: {type(age)}")

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  2.Floats (Decimal Numbers)
&lt;/h1&gt;

&lt;p&gt;Floats are numbers with decimals. They’re useful when precision matters.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;height = 1.75
price = 9.99
pi = 3.14

print(f"Height: {height}")
print(f"Price: ${price}")
print(f"Pi: {pi}")
print(f"Type of height: {type(height)}")

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  3.Strings (Text)
&lt;/h1&gt;

&lt;p&gt;Strings represent text data. They’re enclosed in quotes (" " or ' ').&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;name = "Alice"
city = "New York"
message = "Hello, World!"

print(f"Name: {name}")
print(f"City: {city}")
print(f"Message: {message}")
print(f"Type of name: {type(name)}")

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  4.Booleans (True/False)
&lt;/h1&gt;

&lt;p&gt;Booleans represent logical values: either True or False.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;is_student = True
is_raining = False

print(f"Is student? {is_student}")
print(f"Is raining? {is_raining}")
print(f"Type of is_student: {type(is_student)}")

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  5.Finding Data Types
&lt;/h1&gt;

&lt;p&gt;Python makes it easy to check the type of any value using the type() function.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;num_int = 42
print(f"Value: {num_int}")
print(f"Data Type: {type(num_int)}")

is_true = True
print(f"Value: {is_true}")
print(f"Data Type: {type(is_true)}")

text = "Python"
print(f"Value: {text}")
print(f"Data Type: {type(text)}")

decimal = 3.14
print(f"Value: {decimal}")
print(f"Data Type: {type(decimal)}")

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  My Take
&lt;/h1&gt;

&lt;p&gt;Understanding data types is the foundation of programming in Python. Once you know how to work with integers, floats, strings, and booleans, you’ll be ready to explore more advanced concepts like lists, dictionaries, and classes that we are going to learn later as we proceed.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Introduction to Python: My First Program</title>
      <dc:creator>Mary Nyandia</dc:creator>
      <pubDate>Tue, 26 May 2026 12:12:32 +0000</pubDate>
      <link>https://dev.to/nyandiatech/introduction-to-python-my-first-program-3j57</link>
      <guid>https://dev.to/nyandiatech/introduction-to-python-my-first-program-3j57</guid>
      <description>&lt;p&gt;Python is a high‑level, interpreted programming language that has become one of the most popular tools for developers worldwide. Its simplicity and readability make it an excellent choice for beginners, while its versatility ensures professionals can use it across countless domains.&lt;/p&gt;

&lt;h1&gt;
  
  
  Why Python?
&lt;/h1&gt;

&lt;p&gt;Python can be used in many areas of technology, including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Web Development .&lt;/li&gt;
&lt;li&gt;Data Science &amp;amp; Machine Learning .&lt;/li&gt;
&lt;li&gt;Automation &amp;amp; Scripting .&lt;/li&gt;
&lt;li&gt;Game Development .&lt;/li&gt;
&lt;li&gt;Software Development.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  My First Python Program
&lt;/h1&gt;

&lt;p&gt;In Python, printing text to the screen is straightforward:&lt;br&gt;
&lt;a href="https://github.com/nyandia-tech/learning-python-" rel="noopener noreferrer"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Introduction to Python
# Python is a high-level, interpreted programming language known for its simplicity and readability.

# Python can be used for:
# 1. Web Development
# 2. Data Science and Machine Learning
# 3. Automation and Scripting
# 4. Game Development
# 5. Software Development
# 6. Scientific Computing

print("Welcome to Python Programming!")
print("This is my first python program.")
print("Python is great for beginners and professionals alike.")

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;print() is a built‑in function that displays text on the screen.&lt;/p&gt;

&lt;p&gt;Comments (#) are ignored by Python but help explain what the code does.&lt;/p&gt;

&lt;p&gt;Each line of code runs in order, making Python easy to follow.&lt;/p&gt;

&lt;h1&gt;
  
  
  Why This Matters
&lt;/h1&gt;

&lt;p&gt;This simple program shows how approachable Python is. With just a few lines of code, you can start interacting with your computer. From here, you can explore variables, loops, functions, and eventually dive into advanced topics like data analysis or web development.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>cloud computing.</title>
      <dc:creator>Mary Nyandia</dc:creator>
      <pubDate>Tue, 16 Sep 2025 08:00:03 +0000</pubDate>
      <link>https://dev.to/nyandiatech/cloud-computing-53oe</link>
      <guid>https://dev.to/nyandiatech/cloud-computing-53oe</guid>
      <description>&lt;p&gt;I recently completed a full-stack build using AWS services DynamoDB for data modeling, Lambda for serverless logic, and API Gateway for routing. We wrapped it up with a frontend that ties everything together beautifully.&lt;br&gt;
This project sharpened my skills in cloud architecture and frontend-backend synergy.&lt;br&gt;
Let’s keep building.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Exploring backend development through Akili Mtuwangu—a Flutter app for mental wellness and meaningful design</title>
      <dc:creator>Mary Nyandia</dc:creator>
      <pubDate>Fri, 05 Sep 2025 10:58:07 +0000</pubDate>
      <link>https://dev.to/nyandiatech/exploring-backend-development-through-akili-mtuwangu-a-flutter-app-for-mental-wellness-and-4f52</link>
      <guid>https://dev.to/nyandiatech/exploring-backend-development-through-akili-mtuwangu-a-flutter-app-for-mental-wellness-and-4f52</guid>
      <description></description>
    </item>
  </channel>
</rss>
