Search a sequence for its minimum and stop as soon as the lowest possible value is found

Paul Rubin no.email at nospam.invalid
Sun Jan 8 04:49:39 EST 2017


Jussi Piitulainen <jussi.piitulainen at helsinki.fi> writes:
> That would return 0 even when there is no 0 in xs at all.

Doesn't look that way to me:

    >>> minabs([5,3,1,2,4])
    1



More information about the Python-list mailing list