Python passes the Turing test with a one-liner !

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Morris Carré

    Python passes the Turing test with a one-liner !


    filter(lambda W : W not in 'ILLITERATE','B ULLSHIT')

  • Jon Perez

    #2
    Re: Python passes the Turing test with a one-liner !

    Morris Carré wrote:
    [color=blue]
    >
    > filter(lambda W : W not in 'ILLITERATE','B ULLSHIT')
    >[/color]

    The list comprehension version:

    [p for p in 'BULLSHITTER' if p not in 'ILLITERATE']

    Comment

    Working...