[Python] capitating a list of integers
Martin Kelly
aomighty at gmail.com
Sat May 12 00:10:17 PDT 2007
Previous message:
[Python] capitating a list of integers
Next message:
[Python] capitating a list of integers
Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
>
is there a more elegant way to phrase that?
Yes. Use min(). [min(i, 100) for i in n]
Previous message:
[Python] capitating a list of integers
Next message:
[Python] capitating a list of integers
Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python mailing list