Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def filter_list(l):
- numbers = [int(l) for l in str.split(l) if l.isdigit()]
- print(numbers)
- string = ' '.join(str(e) for e in numbers)
- return string
- #return a new list with the strings filtered out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement