Advertisement
RapidR3D

filter_list

Mar 14th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. def filter_list(l):
  2.     #'return a new list with the strings filtered out'
  3.     return [ x for x in l if type(x) != str ]
  4.  
  5. #This solution is what I was trying to do in "Pull INTEGERS"...took a second to arrive here!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement