image_smoother.py

Majina katika msimbo na maandishi ya kurasa za mfano zinazofanya kazi yamehifadhiwa kama yalivyo katika asili. Somo na maelekezo ya faili yanayafafanua kwa Kiswahili.

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")