Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Python passes the Turing test with a one-liner !

Reply
Thread Tools

Python passes the Turing test with a one-liner !

 
 
=?ISO-8859-1?Q?Morris_Carr=E9?=
Guest
Posts: n/a
 
      04-01-2004

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

 
Reply With Quote
 
 
 
 
Jon Perez
Guest
Posts: n/a
 
      04-01-2004
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']
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Windows 7 early promise: passes the Vista test Lawrence D'Oliveiro NZ Computing 10 11-01-2008 12:07 AM
Re: Windows 7 early promise: passes the Vista test Lawrence D'Oliveiro NZ Computing 3 10-31-2008 11:39 PM
Accessible Turing test +mrcakey HTML 17 05-29-2008 04:10 PM
Upcoming IE8 passes Acid2 test Mickey Mouse NZ Computing 22 12-28-2007 12:42 AM
test test test test test test test Computer Support 2 07-02-2003 06:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57