python array all negative numbers change to zero code example Example: convert negative to zero in list in python [max(num, 0) for num in num_list]