Clases de Python is a hands-on, project-oriented Python course structured around four focused weeks of programming content, plus a bonus web week. Each week builds on the last — starting from fundamental data types and arithmetic, progressing through control flow and object-oriented design, and culminating in file I/O, dictionaries, and live MySQL database connectivity viaDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/marioaje/Python/llms.txt
Use this file to discover all available pages before exploring further.
pymysql. Whether you’re writing your first print() statement or querying a remote database, this course gives you a practical, code-first path through Python development.
All source files and in-code comments are written in Spanish, reflecting the course’s original language of instruction. The Python concepts, syntax, and techniques covered are universal and apply to any Python developer regardless of language background.
Weekly Overview
Week 1 — Python Foundations
Variables, data types (
int, float, str, bool), arithmetic operations, user input, list manipulation, and print() formatting. You’ll also use the sys module to inspect your Python runtime.Week 2 — Control Flow
Conditional logic with
if / elif / else, for loops with range(), for loops over lists (foreach-style), f-strings, and introductory object-oriented programming with classes, getters, and setters.Week 3 — Functions, Classes & Packages
Defining reusable functions with and without parameters, return values, class constructors with
__init__, instance attributes, getter/setter methods, and installing third-party packages via pip (e.g., camelcase).Week 4 — Data Structures, File I/O & MySQL
Dictionaries, arrays, lists of dictionaries,
while loops, file reading/writing with the open() built-in, CSV parsing with the csv module, and MySQL CRUD operations using pymysql.Course Structure
The course is divided into five directories — four Python weeks and one bonus web week — each containing standalone, runnable.py (or .html) scripts:
| Week | Directory | Focus |
|---|---|---|
| Week 1 | semana1/ | Core syntax: variables, data types, operators, input/output, lists |
| Week 2 | semana2/ | Control flow: conditionals, loops, list traversal, intro to OOP |
| Week 3 | semana3/ | Functions, classes, while loops, third-party packages |
| Week 4 | semana4/ | Dictionaries, file I/O, CSV handling, MySQL with pymysql |
| Bonus | semanaweb/ | HTML fundamentals: headings, paragraphs, images, tables, video, containers |
Key Python Topics Covered
Working through all four Python weeks, you will encounter:- Data types —
int,float,str,booland Python’s dynamic (non-typed) variable system - Operators — arithmetic (
+,-,*,/), comparison (==,<,>), logical operators - User input — capturing and casting keyboard input with
input()andint() - Lists — indexing, mutation,
.append(),.pop(), and iteration - Conditional logic —
if,elif,elsebranches and f-string formatting - Loops —
forwithrange(),forover iterables,whilewithinput()menus - Functions — parameterless functions, functions with arguments, and return values
- Object-Oriented Programming —
class,__init__,self, instance attributes, getters and setters - Modules & packages — importing
os,sys,csv,refrom the standard library; installing packages withpip - Dictionaries — key/value pairs, nested structures, lists of dictionaries
- File I/O — opening, reading, writing, and deleting files; reading CSV data with the
csvmodule - Database connectivity — connecting to MySQL, executing
SELECT/INSERT/UPDATEqueries usingpymysql