Python passes the Turing test with a one-liner !

Discussion in 'Python' started by =?ISO-8859-1?Q?Morris_Carr=E9?=, Apr 1, 2004.

  1. filter(lambda W : W not in 'ILLITERATE','BULLSHIT')
     
    =?ISO-8859-1?Q?Morris_Carr=E9?=, Apr 1, 2004
    #1
    1. Advertising

  2. =?ISO-8859-1?Q?Morris_Carr=E9?=

    Jon Perez Guest

    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']
     
    Jon Perez, Apr 2, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Xah Lee
    Replies:
    0
    Views:
    345
    Xah Lee
    Oct 20, 2005
  2. +mrcakey

    Accessible Turing test

    +mrcakey, May 21, 2008, in forum: HTML
    Replies:
    17
    Views:
    663
    +mrcakey
    May 29, 2008
  3. srinivasan srinivas

    Python one-liner??

    srinivasan srinivas, Aug 21, 2008, in forum: Python
    Replies:
    2
    Views:
    335
    Paddy
    Aug 23, 2008
  4. @ Rocteur CC

    Python dos2unix one liner

    @ Rocteur CC, Feb 27, 2010, in forum: Python
    Replies:
    23
    Views:
    5,141
    Albert van der Horst
    Mar 12, 2010
  5. Larry
    Replies:
    1
    Views:
    102
    Martien Verbruggen
    Feb 3, 2005
Loading...

Share This Page