Answers for "python negative value to 0"

1

convert negative to zero in list in python

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

python turn positive into negative

a = -abs(a)
Posted by: Guest on July-27-2021

Python Answers by Framework

Browse Popular Code Answers by Language