Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove negative numbers from list python

my_positive_list = [number for number in my_list if number >= 0]
 
PREVIOUS NEXT
Tagged: #remove #negative #numbers #list #python
ADD COMMENT
Topic
Name
5+9 =