3 ms·
For the lulz, I turned your code into one line with lambdas: https://gist.github.com/betaveros/1e76b3ca53001c8edcef https://gist.github.com/betaveros/1e76b3ca53
by betaveros 11y ago
For the lulz, I turned your code into one line with lambdas: https://gist.github.com/betaveros/1e76b3ca53001c8edcef https://gist.github.com/betaveros/1e76b3ca53001c8edcef
It takes quite a few more characters, but it was fun.
- pen2l 11y agoOkay, 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!!!!
- nvader 11y agoI like it! Looks like you replaced while with a recursion, and you had to import sys to get rid of a print statement. Bravo :)