a is an array of numbers. Which line picks the numbers that are from 10 to 20, both ends included?
a[10:20]
a[(a >= 10) & (a <= 20)]
a[a >= 10 & a <= 20]
a[a >= 10 and a <= 20]
Log in to join the discussion.
Loading…