Advertisement
vivaladiva

Untitled

Oct 27th, 2020
1,947
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. def removeNegatives(listOfIntegers):
  2.     listOfIntegers = [i for i in listOfIntegers if i >= 0]
  3.  
  4.     return listOfIntegers
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement