By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,548 Members | 1,513 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,548 IT Pros & Developers. It's quick & easy.

Python passes the Turing test with a one-liner !

P: n/a

filter(lambda W : W not in 'ILLITERATE','BULLSHIT')

Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Morris Carré wrote:

filter(lambda W : W not in 'ILLITERATE','BULLSHIT')

The list comprehension version:

[p for p in 'BULLSHITTER' if p not in 'ILLITERATE']
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.