News for hackers. Stuff that matters.
Re:Show HN: Hangman in 3 lines of Python by betaveros on Saturday February 06, 2016 @09:25PM (#11051231)
For the lulz, I turned your code into one line with lambdas: https://gist.github.com/betaveros/1e76b3ca53001c8edcef

It takes quite a few more characters, but it was fun.

Re:Show HN: Hangman in 3 lines of Python by pen2l on Saturday February 06, 2016 @09:47PM (#11051309)
Okay, I have an even better challenge for you guys.

Instead of minimizing it to least amount of lines/chars, you have to maximize the clarity of the code such that the rest of us laymen can understand it.

GO!!!!

Re:Show HN: Hangman in 3 lines of Python by nvader on Saturday February 06, 2016 @10:37PM (#11051477)
I tried to explain in my article how the code works. If I did my job well, you should be able to write the clear version yourself!
Re:Show HN: Hangman in 3 lines of Python by pen2l on Saturday February 06, 2016 @10:53PM (#11051514)
Okay I just read the full article - you've done your job really, really well! I look forward to reading more from you.
Re:Show HN: Hangman in 3 lines of Python by nvader on Saturday February 06, 2016 @09:55PM (#11051336)
I like it! Looks like you replaced while with a recursion, and you had to import sys to get rid of a print statement. Bravo :)