How do I change all negative numbers to zero in python?
08:15 30 Mar 2016

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!

python list list-comprehension