Advertisement
DiYane

Word filter

Sep 25th, 2023
511
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. text = input().split()
  2.  
  3. even_length_words = [word for word in text if len(word) % 2 == 0]
  4.  
  5. for word in even_length_words:
  6.     print(word)
Tags: python
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement