Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text = input().split(" ")
- result = [element for element in text if len(element) % 2 == 0]
- print(result)
- result2 = list(filter((lambda x: len(x) % 2 == 0), text))
- print(result2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement