image_smoother.py

Le code et les pages d’exemple fonctionnelles conservent leurs identifiants et leurs textes d’origine. La leçon et les consignes des fichiers les expliquent dans votre langue.

def smooth_image(grid):
    """Return a new rectangular grid of rounded-down neighbourhood averages.
    Keep input unchanged; reject unequal row lengths with ValueError.
    Empty input returns []. See the lesson for the full contract.
    """
    raise NotImplementedError("Implement the seven-step design here")