Python 2.x (ekspresi tunggal)
Sekarang, meskipun hal ini cukup mudah untuk diketahui oleh Pythoneers, yang lain mungkin merasa paling tidak menarik. Jika Anda bertanya-tanya mengapa ada begitu banyak lambda, saya ingin memiliki underscoreness maksimum, tetapi pengulangan yang minimal. Siapa yang tidak suka menggarisbawahi? Ideone
(lambda ______________:(lambda ______,_______,________:(lambda _____:(lambda _,___,__,____,_____________:(lambda _________,__________:(lambda ___________,____________:___________(____________,____[_________**(_________+__________)-__________::_________+_________+_________]+_[__________::_________]+__[_________+__________])(____________,______________))((lambda _,__:________(______(_))[__]),(________(__import__(_[_________]+__[_________*_________+__________]+_[_________]))[_[_________:_________+_________]+___[__________/_________]+__[__________]+_____(u'')[__________/_________]+_[_________+__________]])))((_____________(_)+_____________(_))/_____________(_),_____________(_)/_____________(_)))(_____([]),_____({}),_____(None),_____({}.__iter__),lambda _:len(_)))(lambda _:_______(______(_))))((lambda _:_.__class__),(lambda _:_.__name__),(lambda _:_.__dict__)))('Just another Python Hacker\n')
Versi indentasi jika Anda lebih suka:
(lambda ______________:
(lambda ______,_______,________:
(lambda _____:
(lambda _,___,__,____,_____________:
(lambda _________,__________:
(lambda ___________,____________:
___________(____________,____[_________**(_________+__________)-__________::_________+_________+_________]+_[__________::_________]+__[_________+__________])(____________,______________)) (
(lambda _,__:________(______(_))[__]),
(________(__import__(_[_________]+__[_________*_________+__________]+_[_________]))[_[_________:_________+_________]+___[__________/_________]+__[__________]+_____(u'')[__________/_________]+_[_________+__________]]))) (
(_____________(_)+_____________(_))/_____________(_),
_____________(_)/_____________(_))) (
_____([]),
_____({}),
_____(None),
_____({}.__iter__),
lambda _:len(_))) (
lambda _:_______(______(_)))) (
(lambda _:_.__class__),
(lambda _:_.__name__),
(lambda _:_.__dict__)))('Just another Python Hacker\n')
Ini mendefinisikan suatu fungsi dan menyebutnya dengan 'Just another Python Hacker'. Sekarang, itu tidak harus berfungsi, tapi saya pikir itu akan lebih elegan.
f = (lambda ______________:(lambda ______,_______,________:(lambda _____:(lambda _,___,__,____,_____________:(lambda _________,__________:(lambda ___________,____________:___________(____________,____[_________**(_________+__________)-__________::_________+_________+_________]+_[__________::_________]+__[_________+__________])(____________,______________))((lambda _,__:________(______(_))[__]),(________(__import__(_[_________]+__[_________*_________+__________]+_[_________]))[_[_________:_________+_________]+___[__________/_________]+__[__________]+_____(u'')[__________/_________]+_[_________+__________]])))((_____________(_)+_____________(_))/_____________(_),_____________(_)/_____________(_)))(_____([]),_____({}),_____(None),_____({}.__iter__),lambda _:len(_)))(lambda _:_______(______(_))))((lambda _:_.__class__),(lambda _:_.__name__),(lambda _:_.__dict__)))
f('Hello.\n')
f('Just another Python Hacker here.\n')