Answers for "Create a function that takes in a list and returns a new list with the negatives removed"

2

remove negative numbers from list python

my_positive_list = [number for number in my_list if number >= 0]
Posted by: Guest on March-18-2021

Code answers related to "Create a function that takes in a list and returns a new list with the negatives removed"

Python Answers by Framework

Browse Popular Code Answers by Language