main.py38 chars2 lines
Explanation:
(x > 5)
creates a boolean mask of values greater than 5(x < 100)
creates a boolean mask of values smaller than 100(x % 7 ==0)
creates a boolean mask of values divisible by 7&
operator combines boolean masks in element-wise manner, logical AND operatorgistlibby LogSnag