Saltar al contenido
Aprende a programar — Python, Java, C, SQL y Web

Introducción a Python

Tus primeros pasos en programación — sin experiencia previa necesaria.

  • python
  • 22 Lecciones
  • 6 projects
  • 15 videos
  • Se ejecuta en tu navegador

En este dispositivo: 0 de 22 lecciones completadas

Iniciar el curso

Cada lección funciona en su navegador: escriba código real, presione Ejecutar y las tareas se verifican solas. Gratis, sin necesidad de cuenta, con notas traducidas emparejadas con inglés.

Lecciones en este curso

26 de 26 lecciones mostradas

Part 1 You build: Project: Mad Libs

  1. ¡Ejecútalo! Los botones · Cuando algo sale mal · Cuando un programa espera por ti Lesson 0 · Tareas obligatorias 3 · ★
  2. Tu primer programa Show text with print · Strings · Comments Lesson 1 · Tareas obligatorias 3 · ★ Video
  3. Variables A box with a name · Make a variable · Naming rules · Change a variable Lesson 2 · Tareas obligatorias 3 · ★ Video
  4. Números y operadores Two kinds of number · Add, subtract, multiply, divide · Whole-number division, remainder, powers · Order of operations Lesson 3 · Tareas obligatorias 3 · ★ Video
  5. Obtener entrada Ask the user with input · When your program waits · input always gives a string · Turn text into a number Lesson 4 · Tareas obligatorias 3 · ★ Video
  6. Trabajar con cadenas Letters have positions · Take a slice · Length and changing case · f-strings build text Lesson 5 · Tareas obligatorias 4 · ★★ Video
  7. Proyecto Project: Mad Libs Collect the words · Change a word · A title with a line under it Proyecto · ★★

Part 2 You build: Project: Guess the number

  1. Tomar decisiones Making a choice · Comparisons · if / elif / else · The remainder Lesson 6 · Tareas obligatorias 4 · ★★ Video
  2. Bucles de conteo Repeat with for · Counting with range · Build a total (accumulator) · Words and a number on one line Lesson 7 · Tareas obligatorias 4 · ★★ Video
  3. Bucles while Loop while a condition is true · Always change the condition · break and continue · Checking before or after Lesson 8 · Tareas obligatorias 3 · ★★ Video
  4. Proyecto Project: Guess the number One guess · Keep guessing · Print the count · The sentence Proyecto · ★★★

Part 3 You build: Project: Quiz with a score

  1. Lists (1-D arrays) A list holds many values · Get and change items · Add items and count them · Loop over a list Lesson 9 · Tareas obligatorias 3 · ★★ Video
  2. Proyecto Project: Quiz with a score Two lists that match · Keep the score · Forgive the typing Proyecto · ★★★

Part 4 You build: Project: Rock, paper, scissors

  1. Funciones Name a block of code · Give it inputs (parameters) · Send back a result (return) · return vs print Lesson 10 · Tareas obligatorias 3 · ★★ Video
  2. Proyecto Project: Rock, paper, scissors Who wins? · Functions can use functions · Check what the player typed · Play for real Proyecto · ★★★

Part 5 You build: Project: Text adventure

  1. Ámbito y argumentos Local variables · Global variables · Default values · How arguments are passed Lesson 11 · Tareas obligatorias 4 · ★★★ Video
  2. Dictionaries (records) Store data by name · Get and set values · A dictionary as a record · Check and loop Lesson 12 · Tareas obligatorias 3 · ★★★ Video
  3. Proyecto Project: Text adventure A dictionary inside a dictionary · Is there a door? · Follow a list of directions · Play for real Proyecto · ★★★★

Part 6 You build: Project: Hangman

  1. Planificación y pseudocódigo Plan before you code · Decomposition · Abstraction · Structured English Lesson 13 · Tareas obligatorias 3 · ★★ Video
  2. Errores y pruebas Three kinds of error · Syntax errors · Runtime errors · Logic errors Lesson 14 · Tareas obligatorias 3 · ★★★ Video
  3. Juntándolo todo The plan · Handy built-ins for lists · A pattern you will reuse: count items that pass a test Lesson 15 · Tareas obligatorias 3 · ★★★ Video
  4. Proyecto Project: Hangman Plan first · Build a string letter by letter · Stop as soon as you know · The game loop Proyecto · ★★★★

Lectura y recursos

  1. Una breve historia de Python Where Python came from · Why the funny name · Built for people to read · Python today Lectura y recursos
  2. Para qué se usa Python What people build with Python · Websites and apps · Data, AI, and science · Automation Lectura y recursos
  3. Dónde aprender más Juega y practica · Lee y consulta · Más cursos en este sitio · Consejo Lectura y recursos
  4. Configura tu computadora Run Python on your own computer · Step 1 — Install Python · Step 2 — Install VS Code · Step 3 — Add the Python extension Lectura y recursos
Open the Python reference Every topic in one place, with short examples you can run.

Dónde aprender más

Iniciar sesión o crear cuenta

IGCSE, A-Level & AP