The Python Path is a web-based resource focused on teaching the Python programming language, aimed at anyone interested in programming, technology, and computer science. It is a platform with a dynamic approach, where knowledge is delivered through a structured and guided Learning Plan, designed to make learning Python feel like a true adventure.
The Python Path integrates educational content, examples, tips, notes, and hands-on exercises, with the ability to run Python code directly in the web browser thanks to Pyodide, allowing users to practice comfortably within a complete and interactive learning environment.
Additionally, do you think you are capable of facing the challenge of the Python Serpent? Play and learn, earn points, and put your knowledge to the test while having fun.
Because learning is an adventure!
- Pyodide: Pyodide enables running full Python code directly in the web browser, allowing interactive coding and learning without installing Python or using a server.
-
-
1. Fundamentals of the Language
In this module, you will learn what Python is and how to create your first programs. You will learn how to display text, use variables, work with numbers and strings, perform basic operations, and interact with the user through data input.
-
1.1. What is Python and How Does It Work?
Introduction to the language, its features, readable syntax, and its uses.
-
1.2. Your First Program: print()
How to display text on the screen and understand the basic structure of a program.
-
1.3. Comments and Basic Code Style
Using # to document code and keep it readable.
-
1.4. Variables and Basic Data Types
What variables are, how to create them, and the most common types: int, float, str, bool.
-
1.5. Mathematical and Text Operations
Using +, -, *, / operators, string concatenation, and repetition.
-
How to receive information from the user and process it.
-
-
In this module, you will learn how to control the flow of your program. You will use conditionals to make decisions, loops to repeat actions, and logical operators to combine conditions. You will also learn how to break or continue loops according to your program’s logic.
-
2.1. Conditionals: if, elif, else
In this unit, you will learn how to allow your program to make decisions using if, elif, and else, so that the code can execute different actions depending on which conditions are met. You will see how the flow behaves when a condition is true, what happens when none match, and how to chain multiple options together.
-
2.2 Logical and Comparison Operators
Here you will understand how operators such as ==, !=, <, >, <=, >= work, and how to combine them with and, or and not to build more complex conditions. This will allow you to evaluate multiple situations at the same time and create more precise decisions within your conditional structures.
-
In this unit, you will learn how to repeat instructions using while and for, which allows you to perform tasks repeatedly without writing the same code many times. You will also learn how to iterate over a sequence of characters (str).
-
Here you will discover how to modify the internal execution of a loop using special statements like break to stop it early, continue to skip a specific iteration, and pass to leave an empty block to be completed later. These tools allow you to have more precise and flexible control over the behavior of your loops.
-
-
In this module, you will learn to work with different types of collections in Python. You will understand how to use lists, tuples, dictionaries, and sets to store and organize information, as well as how to iterate over and manipulate their elements.
-
3.1. Lists: Ordered Collections
Lists are data structures that allow storing multiple elements in a single variable while maintaining a specific order. In this unit, you will learn how to create lists using different data types, access their elements using positive and negative indices, modify existing values, add or remove elements, and iterate through the list using looping structures. Additionally, you will understand how lists can represent dynamic collections of information that can change during the execution of a program.
-
In this unit, you will study Python’s built-in methods that facilitate list manipulation. You will learn to use functions such as append() to add elements, remove() to delete specific values, sort() to organize data, reverse() to invert the order, and count() to count occurrences within the list. Emphasis is placed on how these methods help write cleaner code, reduce manual operations, and improve the organization and processing of data collections.
-
Tuples are structures similar to lists, but with the main characteristic of being immutable, meaning their elements cannot be modified after creation. In this unit, you will learn what tuples are, how they are defined, and how to access their values, as well as the scenarios in which it is appropriate to use them, especially when you want to protect constant data or represent fixed information. You will also explore the practical differences between lists and tuples in terms of security, performance, and usage in real-world programs.
-
3.4. Dictionaries: Keys and Values
Dictionaries allow storing information using key-value pairs, making it easier to represent structured and related data. In this unit, you will learn how to create dictionaries, access values through their keys, modify existing information, add new elements, and iterate through the dictionary using loops. You will also explore how this structure is ideal for modeling real-world objects, such as users, products, or configurations, where each piece of data has a unique identifier.
-
Sets are data structures that store unique elements without maintaining a specific order, automatically preventing duplicate values. In this unit, you will learn how to create sets, add and remove elements, and apply mathematical operations between sets such as union, intersection, and difference. Additionally, practical use cases will be explored where sets help simplify problems related to data comparison, duplicate filtering, and analyzing matches between collections.
-
3.6. Iterating Through Data Structures
This unit focuses on the different ways to iterate through data structures using loops in Python. You will learn how to use simple and nested for loops, the len() function to obtain the size of collections, and the enumerate() function to access both the index and the value of elements simultaneously. The goal is to develop the ability to process information stored in lists, tuples, dictionaries, and sets in order to work with more complex data structures.
-
-