Medium
np.where
Read integers and replace every negative number with 0 using
np.where. Print the result as a list.Input
One line of integers.
Output
A list.
Sample 1
Input
3 -1 4 -5
Output
[3, 0, 4, 0]
Sample 2
Input
-7
Output
[0]
Output appears here