<?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>Forem: Leandro Rodrigues Alexandre</title>
    <description>The latest articles on Forem by Leandro Rodrigues Alexandre (@cuscodev).</description>
    <link>https://forem.com/cuscodev</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%2F1387215%2F17dd5906-61e1-42df-b92e-443547f0f37e.jpeg</url>
      <title>Forem: Leandro Rodrigues Alexandre</title>
      <link>https://forem.com/cuscodev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/cuscodev"/>
    <language>en</language>
    <item>
      <title>Let's Go with CSharp!</title>
      <dc:creator>Leandro Rodrigues Alexandre</dc:creator>
      <pubDate>Thu, 31 Jul 2025 13:04:48 +0000</pubDate>
      <link>https://forem.com/cuscodev/lets-go-with-csharp-1cfp</link>
      <guid>https://forem.com/cuscodev/lets-go-with-csharp-1cfp</guid>
      <description>&lt;p&gt;&lt;strong&gt;Learn C# in 2025: A Beginner-Friendly Guide (With Real-World Examples)&lt;/strong&gt;&lt;br&gt;
New to programming or switching stacks in 2025? If you’re curious about C#, this guide is for you. I’ll walk you through the first steps — from installing your development environment to writing simple programs that solve everyday problems.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My Setup (But You Can Use Yours Too)&lt;/strong&gt;&lt;br&gt;
Here’s what I personally use to code in C#:&lt;br&gt;
MacBook Pro M2&lt;br&gt;
IDE: JetBrains Rider — fast, cross-platform, and perfect for .NET development&lt;br&gt;
Terminal: Warp — a modern terminal with AI and smart suggestions&lt;br&gt;
.NET SDK: Latest stable version (like .NET 8 or higher)&lt;br&gt;
You can follow this tutorial on Windows, Linux, or macOS — Rider is optional; Visual Studio Code or Visual Studio also work great!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Installing the .NET SDK&lt;/strong&gt;&lt;br&gt;
To write and run C# code, you need the .NET SDK.&lt;br&gt;
Go to: &lt;a href="https://dotnet.microsoft.com/en-us/download" rel="noopener noreferrer"&gt;https://dotnet.microsoft.com/en-us/download&lt;/a&gt;&lt;br&gt;
Download and install the latest LTS version (e.g., .NET 8)&lt;br&gt;
Open your terminal and verify the installation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dotnet --version

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 2: Create Your First Project&lt;/strong&gt;&lt;br&gt;
Let’s start with the famous “Hello, World!”&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dotnet new console -n HelloWorldApp
cd HelloWorldApp
dotnet run

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

&lt;/div&gt;



&lt;p&gt;It will 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, World!

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Welcome to the world of C#!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Understanding the Project Structure&lt;/strong&gt;&lt;br&gt;
A basic console project looks like this:&lt;br&gt;
Program.cs: Where your C# code lives&lt;br&gt;
HelloWorldApp.csproj: Project config&lt;br&gt;
bin/ and obj/: Output folders generated during build&lt;br&gt;
You can open this project in Rider, Visual Studio Code, or any C#-compatible IDE.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What Can You Build With C#?&lt;/strong&gt;&lt;br&gt;
Here are some everyday use cases:&lt;br&gt;
Automate tasks like file renaming or batch operations&lt;br&gt;
Build your own command-line tools&lt;br&gt;
Create powerful web APIs using ASP.NET Core&lt;br&gt;
Make bots for Telegram, Discord, etc.&lt;br&gt;
Create games with Unity&lt;br&gt;
Work with Excel files and PDFs&lt;br&gt;
Build small utilities to solve personal or work problems&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-World Example: Email Validator&lt;/strong&gt;&lt;br&gt;
Here's a simple program to check if an email is valid:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;using System.Text.RegularExpressions;

Console.WriteLine("Enter your email:");
var email = Console.ReadLine();

bool isValid = Regex.IsMatch(email, @"^[^@\s]+@[^@\s]+\.[^@\s]+$");

Console.WriteLine(isValid ? "Valid email!" : "Invalid email.");

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;What's Next? (Stay Tuned!)&lt;/strong&gt;&lt;br&gt;
In the next articles, I’ll cover:&lt;br&gt;
Variables, data types, and functions in C#&lt;br&gt;
Creating your first calculator&lt;br&gt;
Introduction to Object-Oriented Programming (OOP)&lt;br&gt;
Building your first REST API with ASP.NET Core&lt;br&gt;
Storing data with Entity Framework Core (EF Core)&lt;br&gt;
Writing unit tests in a beginner-friendly way&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Final Thoughts&lt;/strong&gt;&lt;br&gt;
If you enjoyed this guide, drop a comment or follow me here on Dev.to. I’ll be sharing more step-by-step tutorials very soon!&lt;/p&gt;

</description>
      <category>csharp</category>
      <category>programming</category>
      <category>tutorial</category>
      <category>learning</category>
    </item>
    <item>
      <title>Object-Oriented Programming (OOP) in Python</title>
      <dc:creator>Leandro Rodrigues Alexandre</dc:creator>
      <pubDate>Tue, 15 Apr 2025 19:31:11 +0000</pubDate>
      <link>https://forem.com/cuscodev/object-oriented-programming-oop-in-python-27ib</link>
      <guid>https://forem.com/cuscodev/object-oriented-programming-oop-in-python-27ib</guid>
      <description>&lt;p&gt;📘 Educational Documentation: Object-Oriented Programming (OOP) in Python&lt;/p&gt;

&lt;p&gt;Development Environment:&lt;br&gt;
Terminal: Warp&lt;br&gt;
IDE: IntelliJ IDEA with Python Plugin&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;What is Object-Oriented Programming (OOP)?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Object-Oriented Programming is a paradigm that organizes code around "objects" that represent real-world entities with properties (attributes) and behaviors (methods).&lt;/p&gt;

&lt;p&gt;Key Concepts:&lt;br&gt;
Class: Blueprint to create objects.&lt;br&gt;
Object: Instance of a class.&lt;br&gt;
Attribute: Characteristic of an object.&lt;br&gt;
Method: Behavior or action of an object.&lt;br&gt;
Encapsulation: Hiding internal details of an object.&lt;br&gt;
Inheritance: Reusing code through class hierarchies.&lt;br&gt;
Polymorphism: Ability of different classes to respond to the same method differently.&lt;br&gt;
Abstraction: Modeling relevant objects while hiding unnecessary complexity.&lt;/p&gt;

&lt;p&gt;Everyday Example:&lt;br&gt;
A Person is a class. João and Maria are objects of this class. They have attributes like name and age, and methods like speak or walk.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Setting Up the Environment&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Warp Terminal&lt;br&gt;
Download and install Warp (&lt;a href="https://www.warp.dev/" rel="noopener noreferrer"&gt;https://www.warp.dev/&lt;/a&gt;)&lt;br&gt;
Use the terminal to navigate to your project directory.&lt;br&gt;
IntelliJ IDEA with Python Plugin&lt;br&gt;
Download IntelliJ IDEA (&lt;a href="https://www.jetbrains.com/idea/" rel="noopener noreferrer"&gt;https://www.jetbrains.com/idea/&lt;/a&gt;)&lt;br&gt;
Go to Preferences → Plugins → Marketplace and install the "Python" plugin.&lt;br&gt;
Create a new Python project (File → New Project → Python).&lt;br&gt;
Set up the virtual environment:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjm688bi1hvfezp1lts4q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjm688bi1hvfezp1lts4q.png" alt=" " width="628" height="154"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Creating Your First Class and Object&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Class: Person&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F10dcw2fewux7cpxudtra.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F10dcw2fewux7cpxudtra.png" alt=" " width="800" height="339"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxc82q4zdm0ra4lge7ey4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxc82q4zdm0ra4lge7ey4.png" alt=" " width="686" height="70"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Encapsulation&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Hides internal data of the object, allowing controlled access.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1f0p8a306qlndjyhoh3u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1f0p8a306qlndjyhoh3u.png" alt=" " width="800" height="539"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsfo65agikfms3ounn6eo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsfo65agikfms3ounn6eo.png" alt=" " width="490" height="76"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Inheritance&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Allows a class to inherit attributes and methods from another class.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4wz7njjku88ve2ginlaw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4wz7njjku88ve2ginlaw.png" alt=" " width="800" height="589"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd1apj4h6g5p8reubcv7e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd1apj4h6g5p8reubcv7e.png" alt=" " width="720" height="102"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Polymorphism&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Allows methods with the same name to behave differently depending on the class.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpjvkkxv4f0sf2g8143i8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpjvkkxv4f0sf2g8143i8.png" alt=" " width="684" height="758"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F88bzjc3hpmodu2bmfbc5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F88bzjc3hpmodu2bmfbc5.png" alt=" " width="156" height="102"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Abstraction with abc&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Create abstract classes with mandatory methods.&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%2F5pl2sjebcfxtfs5z8i9q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5pl2sjebcfxtfs5z8i9q.png" alt=" " width="674" height="660"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq0kq0qyu4gupc3xhfacq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq0kq0qyu4gupc3xhfacq.png" alt=" " width="282" height="60"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Practical Project: User Registration System&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Structure:&lt;br&gt;
Base class: User&lt;br&gt;
Subclasses: Admin, Client&lt;br&gt;
Methods: show_data(), validate_age()&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnau1db09u78x4r7ypxyj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnau1db09u78x4r7ypxyj.png" alt=" " width="800" height="880"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0wxe4vbvdd13n937u881.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0wxe4vbvdd13n937u881.png" alt=" " width="554" height="160"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Tips with IntelliJ + Warp&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Use shortcut Shift + Shift to search any file/command.&lt;br&gt;
Use integrated terminal with Warp to run and test your scripts.&lt;br&gt;
Enable debug mode: Run → Debug and set breakpoints beside the line numbers.&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%2F8bi8f8ec6zgh2skbf578.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%2F8bi8f8ec6zgh2skbf578.jpg" alt=" " width="800" height="450"&gt;&lt;/a&gt;10. Illustration: Class Structure&lt;/p&gt;

&lt;p&gt;(Add diagram with labels: class, attributes, methods, inheritance)&lt;br&gt;
I can generate an image representing this structure. Would you like it now?&lt;/p&gt;

&lt;p&gt;✅ Conclusion&lt;/p&gt;

&lt;p&gt;Object-Oriented Programming allows you to create more organized, reusable, and scalable applications. With Python, these concepts are applied in a simple and clear way. Practice by creating your own classes and relationships!&lt;/p&gt;

&lt;p&gt;If you'd like, I can continue expanding this content with:&lt;/p&gt;

&lt;p&gt;Practical exercises&lt;br&gt;
Guided projects&lt;br&gt;
Learning checklists&lt;br&gt;
Visual explanations per concept&lt;/p&gt;

&lt;p&gt;BONUS&lt;/p&gt;

&lt;p&gt;Mini Game:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbc3ft8v6admvatp31vqz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbc3ft8v6admvatp31vqz.png" alt=" " width="800" height="893"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx33vpp4ddq786qm55k71.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx33vpp4ddq786qm55k71.png" alt=" " width="578" height="200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Story-Style Explanation&lt;/p&gt;

&lt;p&gt;Imagine you are playing with building blocks. Each block is special:&lt;br&gt;
A blue block is a Rabbit — it hops.&lt;br&gt;
A green block is a Turtle — it walks slowly.&lt;br&gt;
A brown block is a Horse — it runs fast.&lt;br&gt;
You build your toy and say: "Block, run!" And each one runs in its own way!&lt;br&gt;
This is what Object-Oriented Programming does: you tell the object what to do (like "run!"), and each object does it in its own unique way.&lt;/p&gt;

</description>
      <category>python</category>
      <category>programming</category>
      <category>oop</category>
      <category>learning</category>
    </item>
    <item>
      <title>Data Structures and Algorithms in Python</title>
      <dc:creator>Leandro Rodrigues Alexandre</dc:creator>
      <pubDate>Mon, 07 Apr 2025 13:39:09 +0000</pubDate>
      <link>https://forem.com/cuscodev/data-structures-and-algorithms-in-python-33fm</link>
      <guid>https://forem.com/cuscodev/data-structures-and-algorithms-in-python-33fm</guid>
      <description>&lt;p&gt;&lt;strong&gt;1. Arrays e Linked Lists&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Arrays&lt;/strong&gt;&lt;br&gt;
An array is a collection of elements stored in contiguous memory locations.&lt;/p&gt;

&lt;p&gt;Characteristics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fast access to any element using an index.&lt;/li&gt;
&lt;li&gt;Insertion/removal can be costly.&lt;/li&gt;
&lt;/ul&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%2Ftkretxcdey0uld25nnbm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftkretxcdey0uld25nnbm.png" alt=" " width="656" height="104"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Linked Lists&lt;/strong&gt;&lt;br&gt;
A Linked List is a data structure where each element (node) points to the next.&lt;/p&gt;

&lt;p&gt;Characteristics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Efficient insertion/removal.&lt;/li&gt;
&lt;li&gt;Sequential access.&lt;/li&gt;
&lt;/ul&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%2F9z5195vg4ugotjnny2vj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9z5195vg4ugotjnny2vj.png" alt=" " width="800" height="1157"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Hash Tables&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Hash tables store data in key-value pairs with fast lookup using hashing.&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%2Fyehqanm4oy4fu3u5h4g7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyehqanm4oy4fu3u5h4g7.png" alt=" " width="800" height="99"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Heaps, Stacks, and Queues&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Heaps&lt;/strong&gt;&lt;br&gt;
A heap is a special binary tree used to quickly access the smallest (min-heap) or largest (max-heap) element.&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%2Fm00y04agwknm6zisltlr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm00y04agwknm6zisltlr.png" alt=" " width="542" height="240"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Stacks&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A stack follows the LIFO (Last In, First Out) principle.&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%2Fy2tnguyp19qfzrsnqqsm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy2tnguyp19qfzrsnqqsm.png" alt=" " width="502" height="236"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Queues&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A queue follows the FIFO (First In, First Out) principle.&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%2F8by6eubdmoaj8f13uvti.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8by6eubdmoaj8f13uvti.png" alt=" " width="656" height="288"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Binary Search Tree (BST)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A BST is a binary tree where the left subtree contains smaller values and the right subtree, larger ones.&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%2F1z1hhgomwz1wl0nbx3hd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1z1hhgomwz1wl0nbx3hd.png" alt=" " width="800" height="1003"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Recursion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Recursion is when a function calls itself.&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%2Fwxm7gwozhj2u7wy75rrt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwxm7gwozhj2u7wy75rrt.png" alt=" " width="710" height="370"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Sorting Algorithms&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bubble Sort&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%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5bzkduuv5ddkc0ucfy3e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5bzkduuv5ddkc0ucfy3e.png" alt=" " width="800" height="351"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Merge Sort&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%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1zo2vowqdsdyut7ubuts.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1zo2vowqdsdyut7ubuts.png" alt=" " width="800" height="1227"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Conclusion&lt;/p&gt;

&lt;p&gt;Data structures and algorithms are essential for building efficient and scalable solutions. They are found in everyday tasks such as searching through lists, organizing files, queue systems, and much more.&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%2Fuejxakx6df7xfyoqg7my.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuejxakx6df7xfyoqg7my.png" alt=" " width="800" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>algorithms</category>
      <category>datastructures</category>
      <category>python</category>
      <category>learning</category>
    </item>
    <item>
      <title>Introductory Collections in Python</title>
      <dc:creator>Leandro Rodrigues Alexandre</dc:creator>
      <pubDate>Sat, 05 Apr 2025 10:58:01 +0000</pubDate>
      <link>https://forem.com/cuscodev/introductory-collections-in-python-g7g</link>
      <guid>https://forem.com/cuscodev/introductory-collections-in-python-g7g</guid>
      <description>&lt;p&gt;This document aims to explain, in a simple and straightforward way, the main types of collections in Python: Lists, Tuples, Sets, and Dictionaries. If you've never programmed before, don't worry!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Lists&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What it is:&lt;br&gt;
A list is like a box where you can store various items (numbers, words, etc.) in a specific order.&lt;/p&gt;

&lt;p&gt;Example of a list in Python:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo3ofingq7ygsp5f8oibd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo3ofingq7ygsp5f8oibd.png" alt=" " width="692" height="98"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Main characteristics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Maintains the order of items&lt;/li&gt;
&lt;li&gt;Can be modified (add/remove items)&lt;/li&gt;
&lt;li&gt;Accepts repeated items&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example usage:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhp1d0xakzes177puyo1o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhp1d0xakzes177puyo1o.png" alt=" " width="578" height="114"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Tuples&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What it is:&lt;br&gt;
A tuple is similar to a list, but the items inside it cannot be changed once they are defined.&lt;/p&gt;

&lt;p&gt;Example of a tuple in Python:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp6lco497lewro4pztlih.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp6lco497lewro4pztlih.png" alt=" " width="594" height="98"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Main characteristics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Maintains the order of items&lt;/li&gt;
&lt;li&gt;Cannot be modified (immutable)&lt;/li&gt;
&lt;li&gt;Accepts repeated items&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example usage:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr0u1vtcp8vc1ihkkil12.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr0u1vtcp8vc1ihkkil12.png" alt=" " width="602" height="98"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhpshp0qk8cd9uw9wnmde.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhpshp0qk8cd9uw9wnmde.png" alt=" " width="188" height="60"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Sets&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What it is:&lt;br&gt;
A set is a collection of items without a defined order and without repetition.&lt;/p&gt;

&lt;p&gt;Example of a set in Python:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb5rgdu8d1130h6ypjert.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb5rgdu8d1130h6ypjert.png" alt=" " width="552" height="128"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Main characteristics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Does not maintain order&lt;/li&gt;
&lt;li&gt;Does not accept duplicate items&lt;/li&gt;
&lt;li&gt;Can be modified&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example usage:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi99s1hkxlf6zl85y962s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi99s1hkxlf6zl85y962s.png" alt=" " width="536" height="156"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzws40qua08bchk89xeca.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzws40qua08bchk89xeca.png" alt=" " width="530" height="70"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Dictionaries&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What it is:&lt;br&gt;
A dictionary is a collection of key-value pairs. Think of it like a notebook where each word (key) has a definition (value).&lt;/p&gt;

&lt;p&gt;Example of a dictionary in Python:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fko9ka3txfm5i7sih6lfo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fko9ka3txfm5i7sih6lfo.png" alt=" " width="446" height="258"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Main characteristics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Uses key:value pairs&lt;/li&gt;
&lt;li&gt;Does not accept repeated keys&lt;/li&gt;
&lt;li&gt;Can be modified&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example usage:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft4kjn25b6ydftglihf1n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft4kjn25b6ydftglihf1n.png" alt=" " width="402" height="94"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs1mfdg8b2196msdpzb7r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs1mfdg8b2196msdpzb7r.png" alt=" " width="250" height="70"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;These four types of collections are widely used in Python and are essential for beginners. Think of them as different ways to store and organize information:&lt;/p&gt;

&lt;p&gt;List: a shelf with order&lt;br&gt;
Tuple: fixed shelf&lt;br&gt;
Set: bag with no repeated items&lt;br&gt;
Dictionary: mini notebook with word and meaning&lt;br&gt;
Explore, test, and see how each one behaves in practice!&lt;/p&gt;




&lt;p&gt;Let’s imagine a day in the life of Maria, who is planning a visit to the market.&lt;/p&gt;

&lt;p&gt;Step 1 – The List (List):&lt;br&gt;
Before leaving, Maria writes down all the things she needs to buy: apples, bread, milk, and eggs. She might remember later that she also needs bananas, so she adds that to her list. The list helps her keep everything in order, and she can add or remove items anytime. This is just like a Python list: ordered and flexible.&lt;/p&gt;

&lt;p&gt;Step 2 – The Colors of the Bags (Tuple):&lt;br&gt;
Maria has three reusable shopping bags—one red, one green, and one blue. These are always the same and never change. No matter how many times she goes shopping, these are the bags she uses. They represent a tuple: fixed and dependable.&lt;/p&gt;

&lt;p&gt;Step 3 – The Fruits She Picks (Set):&lt;br&gt;
At the market, Maria picks up various fruits. She ends up with an apple, a banana, and another banana. But at the end, she only counts the unique fruits she got: apple and banana. That’s how a set works—it automatically removes duplicates and doesn't care about order.&lt;/p&gt;

&lt;p&gt;Step 4 – The Receipts (Dictionary):&lt;br&gt;
When Maria returns home, she looks at the receipt. It shows what she bought and how much each item cost: 'apple': $1, 'milk': $2, 'bread': $1.5. This is a dictionary in action—each item (key) is linked to its price (value).&lt;/p&gt;

&lt;p&gt;By using a list, tuple, set, and dictionary, Maria’s simple shopping trip becomes a perfect analogy for how Python collections work in everyday life. &lt;/p&gt;

</description>
      <category>python</category>
      <category>documentation</category>
      <category>learning</category>
      <category>programming</category>
    </item>
    <item>
      <title>🐍 Mastering the Basics of Python: Type Casting, Exceptions, Functions, and Built-in Functions</title>
      <dc:creator>Leandro Rodrigues Alexandre</dc:creator>
      <pubDate>Fri, 04 Apr 2025 09:40:18 +0000</pubDate>
      <link>https://forem.com/cuscodev/mastering-the-basics-of-python-type-casting-exceptions-functions-and-built-in-functions-17of</link>
      <guid>https://forem.com/cuscodev/mastering-the-basics-of-python-type-casting-exceptions-functions-and-built-in-functions-17of</guid>
      <description>&lt;p&gt;I’ve started diving into &lt;strong&gt;Python&lt;/strong&gt;, and to make everything easier, I’m documenting what I’m learning! Today, I want to explain Type Casting, Exceptions, Functions, and Built-in Functions in a way that’s simple and direct.&lt;/p&gt;

&lt;p&gt;🎭 &lt;strong&gt;Type Casting&lt;/strong&gt;&lt;br&gt;
When you work with Python, sometimes the data types aren’t what you expect. Let’s say you have a number stored as text (a string), but you need to use it in a mathematical operation. What do you do? The solution is converting the variable's type — this is what we call Type Casting.&lt;br&gt;
Imagine you have a number stored as text and you want to add it to another number. To do that, you need to convert the text to an integer.&lt;br&gt;
Example:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7jwk90y72l1j69esjbxq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7jwk90y72l1j69esjbxq.png" alt=" " width="800" height="111"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You can also convert between other types:&lt;/li&gt;
&lt;li&gt;int(value): Converts to an integer&lt;/li&gt;
&lt;li&gt;float(value): Converts to a decimal number&lt;/li&gt;
&lt;li&gt;str(value): Converts to text&lt;/li&gt;
&lt;li&gt;list(value): Converts to a list&lt;/li&gt;
&lt;li&gt;It’s simple but super useful!&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;🚨 &lt;strong&gt;Exceptions (Error Handling)&lt;/strong&gt;&lt;br&gt;
Now, let’s talk about an important aspect: errors. Who hasn’t faced that annoying error, right? 🤦‍♂️ Well, in Python, we can handle those errors so that our program doesn’t break completely.&lt;br&gt;
The way we handle errors is by using try and except. This allows you to try running a piece of code, and if it fails, you catch the error and can show a friendly message or take some action.&lt;br&gt;
Example:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9fw3l6tvnotarbx7x30i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9fw3l6tvnotarbx7x30i.png" alt=" " width="800" height="157"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb7gairafk4bwojxi5u4e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb7gairafk4bwojxi5u4e.png" alt=" " width="602" height="58"&gt;&lt;/a&gt;&lt;br&gt;
This way, the program doesn’t “crash.” It just handles the error and keeps running.&lt;/p&gt;

&lt;p&gt;🔄 &lt;strong&gt;Functions&lt;/strong&gt;&lt;br&gt;
Now, if you're writing code that you’ll use over and over again, how about organizing it in a way that you can reuse it anytime? That’s exactly what functions do. They help organize code and avoid repetition.&lt;br&gt;
Imagine you always need to greet someone. Instead of writing the same code every time, you can create a function to do that:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frfq85jyj0eljib9tuji5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frfq85jyj0eljib9tuji5.png" alt=" " width="800" height="136"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs902xlqhudd1vb43rmmz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs902xlqhudd1vb43rmmz.png" alt=" " width="526" height="74"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you need to use it again, just call the function! Simple, right?&lt;br&gt;
Functions can also return values. For example, if you want to add two numbers, you can create a function to do that:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkp50w6bd77jq2l9ui3ya.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkp50w6bd77jq2l9ui3ya.png" alt=" " width="706" height="240"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5yumzzb4n75k9inabj4f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5yumzzb4n75k9inabj4f.png" alt=" " width="174" height="66"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🏗 &lt;strong&gt;Built-in Functions&lt;/strong&gt;&lt;br&gt;
Python also comes with lots of built-in functions. These are super helpful for common tasks, like counting the number of characters in a string or adding numbers.&lt;br&gt;
Examples of built-in functions:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4dfl10sqggv6ke441mgc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4dfl10sqggv6ke441mgc.png" alt=" " width="564" height="256"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F556d2jbre97jsll0bc7g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F556d2jbre97jsll0bc7g.png" alt=" " width="318" height="248"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🚀 Conclusion&lt;br&gt;
Now that you know fundamental concepts like Type Casting, Exceptions, Functions, and Built-in Functions in Python, understand that these are essential steps to writing cleaner, more efficient, and robust code. If you're just starting out, practice a lot! These concepts are the foundation for creating amazing programs. And remember: we learn by making mistakes.&lt;br&gt;
I'm starting to document my Python journey, and maybe by sharing what I’m learning, I can help others with doubts to learn as well. What motivates me every day is knowing that each small achievement brings me closer to doing what I love and feeling happy about sharing this knowledge. Not everyone has the same amount of time or opportunities, but we can always help each other.&lt;br&gt;
Let’s build a chain of learning and collaboration, where everyone has a space to grow and include themselves in the world they want to be in! Every dream is possible, no matter the size.&lt;br&gt;
Let’s go on this journey together! 💻✨&lt;/p&gt;

</description>
      <category>python</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>programming</category>
    </item>
    <item>
      <title>Basic Syntax of Python 3</title>
      <dc:creator>Leandro Rodrigues Alexandre</dc:creator>
      <pubDate>Thu, 03 Apr 2025 15:28:48 +0000</pubDate>
      <link>https://forem.com/cuscodev/basic-syntax-of-python-3-51m2</link>
      <guid>https://forem.com/cuscodev/basic-syntax-of-python-3-51m2</guid>
      <description>&lt;p&gt;&lt;strong&gt;Basic Syntax of Python 3&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Python 3&lt;/strong&gt; is a high-level programming language known for its simple and readable syntax. Unlike other languages, Python uses indentation to define code blocks, making the code more organized and intuitive.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Key Features of Python Syntax:&lt;/strong&gt;&lt;br&gt;
Mandatory Indentation&lt;br&gt;
Instead of curly braces {} or keywords like begin and end, Python uses indentation (spaces or tabs) to structure the code:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzgwadr4r4w3dzt6eial7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzgwadr4r4w3dzt6eial7.png" alt=" " width="800" height="52"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Variable Declaration&lt;/strong&gt;&lt;br&gt;
Python does not require explicit type declaration, as it is dynamically typed:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fri5sh7gb8muy8p57kq2r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fri5sh7gb8muy8p57kq2r.png" alt=" " width="800" height="74"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Comments&lt;/strong&gt;&lt;br&gt;
To write comments in Python, use # for single-line comments and ''' ''' or """ """ for multi-line comments:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo4sfo0lepnz4cdcuzfbc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo4sfo0lepnz4cdcuzfbc.png" alt=" " width="800" height="127"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Conditional Statements&lt;/strong&gt;&lt;br&gt;
Python uses if, elif, and else for control flow:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmto1t6i13j6w5n5ykviw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmto1t6i13j6w5n5ykviw.png" alt=" " width="800" height="163"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Loops&lt;/strong&gt;&lt;br&gt;
for and while loops are used for repeating code:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmmacsstohc3gfcozwu0m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmmacsstohc3gfcozwu0m.png" alt=" " width="800" height="199"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Functions&lt;/strong&gt;&lt;br&gt;
Functions in Python are defined using def:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0tr90w3xbw6xppzpyhlk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0tr90w3xbw6xppzpyhlk.png" alt=" " width="800" height="108"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;✔ Variables store values, just like a box where we can keep different types of information, such as numbers, words, or even lists of items. Python automatically identifies the type of each value.&lt;br&gt;
✔ Indentation organizes the code. Unlike other languages that use {} to define code blocks, Python uses spaces or tabs (indentation). This makes the code more readable and organized, but it must be used correctly.&lt;br&gt;
✔ Conditionals (if, elif, else) help make decisions. Just like in real life, where we make choices based on conditions, Python uses if, elif, and else to execute different actions depending on the situation.&lt;br&gt;
✔ Loops (for and while) allow repeating actions. When we need to execute a piece of code multiple times without rewriting it, we use loops. The for loop iterates over elements in a list or sequence, while while runs a block of code as long as a condition is true.&lt;br&gt;
✔ Functions (def) help organize and reuse code. A function is a reusable block of code that we can call whenever needed, making programs more efficient and easier to maintain.&lt;/p&gt;

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