How do I change all negative numbers to zero in python?
I have one list
list1 = [-10,1,2,3,9,-1]
I want to change the negative number to zero so that it looks like
list1 = [0,1,2,3,9,0]
how can I do it? Thanks!