filter(lambda W : W not in 'ILLITERATE','B ULLSHIT')
Python passes the Turing test with a one-liner !
Collapse
This topic is closed.
X
X
-
Morris Carré
Python passes the Turing test with a one-liner !
filter(lambda W : W not in 'ILLITERATE','B ULLSHIT')
Tags: None -
Jon Perez
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