1. Strutture dati avanzate
Comprendere liste, dict e set in profondità (comprehension, ordinamenti, slicing).
2. Programmazione a oggetti
class Punto: def __init__(self, x, y): self.x, self.y = x, y def distanza(self, altro): from math import hypot return hypot(self.x - altro.x, self.y - altro.y)
3. Ambiente e moduli
Uso di venv
, pip
, organizzazione del progetto, test con pytest
.
4. Lettura/scrittura file
with open("dati.csv") as f: righe = [r.strip().split(",") for r in f]