Gistlib Logo

gistlib

other python categories

array-indexing code snippets in python

suppose that x is a numpy array whose elements are integers. using advanced indexing, write a single line expression that gives elements of x between 5 and 100 divisible by 7 in python

gistlibby LogSnag