Ruta de aprendizaje

Ejercicios prácticos de Python

Ejercicios clásicos para principiantes sobre números, texto y listas, cada uno seguido de un reto para resolver por tu cuenta.

15 lecciones · 26 retos

Empezar la ruta →

1 Números y dígitos 6 lecciones

  1. Lección 2 retos Sum the Digits of a Number Add every decimal digit in an integer.
  2. Lección 2 retos Reverse an Integer in Python Reverse the decimal digits of an integer.
  3. Lección 2 retos Check an Armstrong Number Check whether a number equals the sum of its powered digits.
  4. Lección 1 reto Check a Perfect Number Check whether proper divisors add up to the number.
  5. Lección 2 retos Check a Leap Year in Python Apply Gregorian leap-year rules.
  6. Lección 3 retos Comprobar un número primo en Python Determina eficientemente si un entero es primo.

2 Problemas de texto 5 lecciones

  1. Lección 2 retos Invertir una cadena en Python Invierte caracteres mediante slicing.
  2. Lección 2 retos Count Vowels in Python Count vowels in a line of text.
  3. Lección 2 retos Check Anagrams in Python Check whether two texts contain the same letters.
  4. Lección 1 reto Check Password Strength Validate several basic password requirements.
  5. Lección 1 reto Caesar Cipher in Python Shift lowercase letters by a fixed amount.

3 Problemas de listas 4 lecciones

  1. Lección 2 retos Find the Second Largest Value Find the second distinct largest list value.
  2. Lección 1 reto Remove Duplicate List Values Remove duplicates while preserving their first-seen order.
  3. Lección 2 retos Flatten a Nested List Flatten a one-level nested list.
  4. Lección 1 reto Split a List into Chunks Divide a list into fixed-size groups.