words = {"blue", "ah", "sky", "wow", "neat"}print( list(w for w in words if len(w) % 2 == 0) )
Standard input is empty
['ah', 'blue', 'neat']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!