<?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: Roghaye Mohammadi</title>
    <description>The latest articles on DEV Community by Roghaye Mohammadi (@roghaye_mohammadi_84).</description>
    <link>https://dev.to/roghaye_mohammadi_84</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%2F3483724%2F7c49877f-770b-494e-b772-a6efbff04699.jpg</url>
      <title>DEV Community: Roghaye Mohammadi</title>
      <link>https://dev.to/roghaye_mohammadi_84</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/roghaye_mohammadi_84"/>
    <language>en</language>
    <item>
      <title>Conditional for beginners</title>
      <dc:creator>Roghaye Mohammadi</dc:creator>
      <pubDate>Mon, 17 Nov 2025 11:43:18 +0000</pubDate>
      <link>https://dev.to/roghaye_mohammadi_84/conditional-for-beginners-4gfa</link>
      <guid>https://dev.to/roghaye_mohammadi_84/conditional-for-beginners-4gfa</guid>
      <description>&lt;p&gt;Conditional statements, also called if statements, are one of the most important parts of programming. They allow a program to make decisions based on certain conditions. They check if a condition is true or false, and then run different parts of the code based on the result.&lt;/p&gt;

&lt;p&gt;For example, if the user enters the correct username, the program will allow access. But if the username is wrong, it will show an error message.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;if username =="admin":&lt;br&gt;
    print("Acsees granted)&lt;br&gt;
else:&lt;br&gt;
    print("Error: wrong username")&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;There are different kinds of conditional statements, but the most common are if, else if (or elif) and else. The if statement checks a condition, else if checks another condition if the first one is false, and else is used when none of the conditions are true.&lt;/p&gt;

&lt;p&gt;Conditional statements are very useful in programming because they make programs smarter and able to handle different situations. Without using conditional statements, a program would follow only one path and would not be flexible.&lt;/p&gt;

</description>
      <category>conditional</category>
      <category>beginners</category>
      <category>programming</category>
      <category>statments</category>
    </item>
    <item>
      <title>programming operators</title>
      <dc:creator>Roghaye Mohammadi</dc:creator>
      <pubDate>Tue, 21 Oct 2025 06:36:44 +0000</pubDate>
      <link>https://dev.to/roghaye_mohammadi_84/programming-operators-262l</link>
      <guid>https://dev.to/roghaye_mohammadi_84/programming-operators-262l</guid>
      <description>&lt;p&gt;Imagine you are using a calculator.&lt;br&gt;
You press buttons like +, -, *, /.&lt;br&gt;
These buttons are called operators in programming!&lt;/p&gt;

&lt;p&gt;Operators help the computer do things like:&lt;/p&gt;

&lt;p&gt;1)Add numbers&lt;/p&gt;

&lt;p&gt;2)Compare values&lt;/p&gt;

&lt;p&gt;3)Make decisions&lt;/p&gt;

&lt;h1&gt;
  
  
  Arithmetic Operators (Math)
&lt;/h1&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.amazonaws.com%2Fuploads%2Farticles%2Falw5njf9s39jdppzhyag.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Falw5njf9s39jdppzhyag.jpg" alt=" " width="800" height="504"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Comparison Operators (Check)
&lt;/h1&gt;

&lt;p&gt;These operators ask a question and answer with True or False.&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.amazonaws.com%2Fuploads%2Farticles%2Ffyi9wx7xrukpo327mk2n.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffyi9wx7xrukpo327mk2n.jpg" alt=" " width="720" height="370"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Logical Operators (And / Or / Not)
&lt;/h2&gt;

&lt;p&gt;These are used to combine conditions:&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.amazonaws.com%2Fuploads%2Farticles%2Fng1ttt512lc43n1bmpf4.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fng1ttt512lc43n1bmpf4.jpg" alt=" " width="800" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;Operators are like helpers in programming.&lt;br&gt;
They calculate, check, and control what happens in the code.&lt;/p&gt;

&lt;p&gt;If you know operators, you are one big step closer to becoming a programmer!✌🏻🔥&lt;/p&gt;

</description>
      <category>programming</category>
      <category>operations</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Understanding Variables and Data Types for Beginners</title>
      <dc:creator>Roghaye Mohammadi</dc:creator>
      <pubDate>Thu, 18 Sep 2025 16:09:42 +0000</pubDate>
      <link>https://dev.to/roghaye_mohammadi_84/understanding-variables-and-data-types-for-beginners-9g7</link>
      <guid>https://dev.to/roghaye_mohammadi_84/understanding-variables-and-data-types-for-beginners-9g7</guid>
      <description>&lt;p&gt;If you’re just starting to learn coding, two things you’ll always hear about are variables and data types. Don’t worry, they sound more complicated than they really are! Let’s break them down in a way that makes sense.&lt;/p&gt;

&lt;h2&gt;
  
  
  What’s a Variable?
&lt;/h2&gt;

&lt;p&gt;A variable is like a name tag on a storage box where you can keep data. You can store a number, a word, or even a list of items. And the cool part? You can change what’s inside whenever you want.&lt;/p&gt;

&lt;p&gt;For example, let’s say you want to keep track of your age and name. You could write (in Python):&lt;/p&gt;

&lt;p&gt;age = 26&lt;br&gt;
name = "Dean"&lt;/p&gt;

&lt;p&gt;Now, age and name are variables holding values. You can change them:&lt;/p&gt;

&lt;p&gt;age = 23&lt;br&gt;
name = "Sam"&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a Data Type?
&lt;/h2&gt;

&lt;p&gt;Now, let’s talk about data types. Think of data types as categories or labels for the different kinds of data you can store. Not everything can go into every variable. Some data is numbers, some is text, and some is true or false.&lt;/p&gt;

&lt;p&gt;Integer (int) – whole numbers: 6, 20, -7&lt;/p&gt;

&lt;p&gt;Float (float) – numbers with decimals: 3.14, 68.99&lt;/p&gt;

&lt;p&gt;String (str) – text inside quotes: "Hello", "Python"&lt;/p&gt;

&lt;p&gt;Boolean (bool) – True or False: True, False&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;score = 20     # int&lt;br&gt;
temperature = 37.5  # float&lt;br&gt;
username = "Alex"  # string&lt;br&gt;
is_logged_in = False  # boolean&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does This Matter?
&lt;/h2&gt;

&lt;p&gt;Understanding variables and data types is key to writing code that makes sense. If you try to add a string and a number together, it won’t work! Using the right type of data helps your program run without errors.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick Takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Variables = boxes to store stuff.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Data types = tell you what kind of stuff goes in the box.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Pick the right type to make your code happy and error-free.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Once you get these basics, you’re ready to start creating real programs. And trust me, it gets even more fun from here!&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion &amp;amp; Next Steps
&lt;/h2&gt;

&lt;p&gt;Now that you know about variables and data types, you’re ready to start coding with confidence!&lt;/p&gt;

&lt;p&gt;Store and change data in variables.&lt;/p&gt;

&lt;p&gt;Use the right type for your data to avoid errors.&lt;/p&gt;

&lt;p&gt;Combine what you’ve learned to create small programs.&lt;/p&gt;

&lt;h2&gt;
  
  
  💡 Try this:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Ask the user for a friend’s name and age.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Store the answers in variables.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Print a sentence using those variables, like:&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;"[Name] is [age] years old."&lt;/p&gt;

&lt;p&gt;This simple exercise helps you practice variables, data types, and printing output all in one!&lt;/p&gt;

&lt;p&gt;“Your coding journey starts here!”🔥&lt;/p&gt;

</description>
      <category>coding</category>
      <category>beginners</category>
      <category>database</category>
      <category>programming</category>
    </item>
    <item>
      <title>Coding vs Programming: Key Differences for Beginners</title>
      <dc:creator>Roghaye Mohammadi</dc:creator>
      <pubDate>Sat, 06 Sep 2025 16:05:43 +0000</pubDate>
      <link>https://dev.to/roghaye_mohammadi_84/coding-vs-programming-key-differences-for-beginners-22gf</link>
      <guid>https://dev.to/roghaye_mohammadi_84/coding-vs-programming-key-differences-for-beginners-22gf</guid>
      <description>&lt;p&gt;Many beginners often think coding and programming are the same. While they are closely related, they represent different levels of working with computers. Understanding this distinction early can significantly impact your learning journey and career growth.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Coding?
&lt;/h2&gt;

&lt;p&gt;Coding refers to writing instructions that a computer can directly execute. It focuses on translating ideas into a specific programming language such as Python, Java, or JavaScript.&lt;/p&gt;

&lt;p&gt;For example, writing a short Python script to add two numbers is coding:&lt;/p&gt;

&lt;p&gt;a = 8&lt;br&gt;
b = 2&lt;br&gt;
print(a + b)&lt;/p&gt;

&lt;p&gt;Coding is essentially the act of communication between humans and computers—turning logic into executable commands.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Programming?
&lt;/h2&gt;

&lt;p&gt;Programming goes beyond just writing code. It involves:&lt;/p&gt;

&lt;p&gt;Understanding the problem&lt;/p&gt;

&lt;p&gt;Designing a solution&lt;/p&gt;

&lt;p&gt;Planning and organizing steps&lt;/p&gt;

&lt;p&gt;Handling edge cases and errors&lt;/p&gt;

&lt;p&gt;Writing the code and testing the final system&lt;/p&gt;

&lt;p&gt;For instance, building a weather app that shows forecasts, handles user input, and updates data dynamically is programming. It requires not only coding but also problem-solving, system design, and continuous improvement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Every programmer codes, but not every coder programs.&lt;/p&gt;

&lt;p&gt;Coding teaches you how to write instructions for a computer.&lt;/p&gt;

&lt;p&gt;Programming teaches you how to build systems, solve problems, and think like a professional software developer.&lt;/p&gt;

&lt;p&gt;Recognizing this difference not only clarifies your learning path but also prepares you for professional roles in software development.&lt;/p&gt;

</description>
      <category>basic</category>
      <category>programming</category>
      <category>code</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
