Looking at the list of numbers, I want to get the smallest number from N (if any).
In C #, I do something like this (checked off):
var x = list.Where (i => i> N) . Mean (); What is a small, ready way of doing this in Python?
<>
& gt; & Gt; & Gt; L = [4, 5, 12, 0, 3, 7]> gt; & Gt; & Gt; Minimum (for x in x if x> 5) 7
Comments
Post a Comment