[Python] capitating a list of integers

larry price laprice at gmail.com
Sat May 12 00:32:14 PDT 2007


Much better thank you.

On 5/12/07, Martin Kelly <aomighty at gmail.com> wrote:
> > is there a more elegant way to phrase that?
>
> Yes. Use min().
>
> [min(i, 100) for i in n]
> _______________________________________________
> Python mailing list
> Python at euglug.org
> http://www.euglug.org/mailman/listinfo/python
>


More information about the Python mailing list