Answers for "python code to calculate the total number of zeros, positive and negative elements in the list."

1

convert negative to zero in list in python

[max(num, 0) for num in num_list]
Posted by: Guest on January-07-2021

Code answers related to "python code to calculate the total number of zeros, positive and negative elements in the list."

Python Answers by Framework

Browse Popular Code Answers by Language