Percorso di apprendimento

Esercizi pratici di Python

Esercizi classici per principianti su numeri, testo e liste, ognuno seguito da una sfida da risolvere da solo.

15 lezioni · 26 sfide

Inizia il percorso →

1 Numeri e cifre 6 lezioni

  1. Lezione 2 sfide Sum the Digits of a Number Add every decimal digit in an integer.
  2. Lezione 2 sfide Reverse an Integer in Python Reverse the decimal digits of an integer.
  3. Lezione 2 sfide Check an Armstrong Number Check whether a number equals the sum of its powered digits.
  4. Lezione 1 sfida Check a Perfect Number Check whether proper divisors add up to the number.
  5. Lezione 2 sfide Check a Leap Year in Python Apply Gregorian leap-year rules.
  6. Lezione 3 sfide Verificare un numero primo in Python Controlla in modo efficiente se un intero è primo.

2 Problemi sul testo 5 lezioni

  1. Lezione 2 sfide Invertire una stringa in Python Inverti i caratteri con lo slicing.
  2. Lezione 2 sfide Count Vowels in Python Count vowels in a line of text.
  3. Lezione 2 sfide Check Anagrams in Python Check whether two texts contain the same letters.
  4. Lezione 1 sfida Check Password Strength Validate several basic password requirements.
  5. Lezione 1 sfida Caesar Cipher in Python Shift lowercase letters by a fixed amount.

3 Problemi sulle liste 4 lezioni

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