Trilha de aprendizado

Exercícios práticos de Python

Exercícios clássicos para iniciantes com números, texto e listas, cada um seguido de um desafio para resolver sozinho.

15 lições · 26 desafios

Começar a trilha →

1 Números e dígitos 6 lições

  1. Lição 2 desafios Sum the Digits of a Number Add every decimal digit in an integer.
  2. Lição 2 desafios Reverse an Integer in Python Reverse the decimal digits of an integer.
  3. Lição 2 desafios Check an Armstrong Number Check whether a number equals the sum of its powered digits.
  4. Lição 1 desafio Check a Perfect Number Check whether proper divisors add up to the number.
  5. Lição 2 desafios Check a Leap Year in Python Apply Gregorian leap-year rules.
  6. Lição 3 desafios Verificar número primo em Python Descubra com eficiência se um inteiro é primo.

2 Problemas de texto 5 lições

  1. Lição 2 desafios Inverter string em Python Inverta caracteres usando slicing.
  2. Lição 2 desafios Count Vowels in Python Count vowels in a line of text.
  3. Lição 2 desafios Check Anagrams in Python Check whether two texts contain the same letters.
  4. Lição 1 desafio Check Password Strength Validate several basic password requirements.
  5. Lição 1 desafio Caesar Cipher in Python Shift lowercase letters by a fixed amount.

3 Problemas de listas 4 lições

  1. Lição 2 desafios Find the Second Largest Value Find the second distinct largest list value.
  2. Lição 1 desafio Remove Duplicate List Values Remove duplicates while preserving their first-seen order.
  3. Lição 2 desafios Flatten a Nested List Flatten a one-level nested list.
  4. Lição 1 desafio Split a List into Chunks Divide a list into fixed-size groups.