Created
October 22, 2020 19:31
-
-
Save charlieInDen/8c8271f2c7c118fb38c70ca1b255d0ee to your computer and use it in GitHub Desktop.
filter_list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def filter_list(l): | |
new_list =[] | |
for x in l: | |
if type(x) != str: | |
new_list.append(x) | |
return new_list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment