22
hrvoje
9 25 38
2826/ 2945
Last seen 2 years ago
Member for 10 years, 1 month, 12 days
Difficulty Normal
Trying to make everything a one-liner and sometimes failing miserably. :)

Best reviews / Newest reviews
First-gyahun_dash
Awesome idea with the max and key=your function! More
Brute force-nickie
chain.from_iterable is so very cool and readable! Cool solution. More
simpledict-DiZ 1
This is 5 thumbs worth of clever, thanks. :) More
First-lsk45 1
Creative! Here's a trick I've found useful for grouping into k-sized chunks, it might help down the road. zip(*(iter(list_name),) * chunk_length) More
First - Median-divided.hr
Not bad, clear and readable! :) More
First - X/O Referee-divided.hr
You got it working, now try writing it again without the boring repetitions. :) More
First-divided.hr
You don't need the stuff after the 1, simply count('1') will work just fine. :) More
First-m600
Very nice, clear and effective! :) Here are few tips: You don't need the max(max(pyramid)), the maximum is in the last sublist, so a simple **max(pyramid[-1])** is enough. Instead of list comprehension in the 2nd line, you could have used **map(list, pyramid)**. *for i in range(len(something))* More
First - Number Base-divided.hr
That's nice and clean. Good practice is not catching all exceptions, just the one you want to handle, otherwise programs fail silently while appearing to work. In this case, try **except ValueError:** More
Dynamursion-veky 1
Just ... wow. I didn't know about lru_cache and had to improvise with dict(). Also, never seen lambda *args. 5 thumbs! More
Short-StefanPochmann
This is very elegant, especially the odd ^=1 followed by a multiplication. Megalike! :) More
ZenD'oh-veky 1
Waaaaaaaaat? What did you do on line 5? :) More
First-pohmelie
Love the parity calculation. Have some thumbs! :) More
First-m600 1
Cool! You could also simply return the first==second. If both sides compare equal, it will return true. :-) More
First-aasu
It might be more "*pythonic*" to import string and then use string.ascii_lowercase, but I like this solution - simple and interesting. Well done! :) More
First-RaMon 1
This is a clever way, well done! **all** is also very handy and could come useful, for example: return all(chr(i) in text.lower() for i in range(97, 123)) More
First-m600 1
Might be easier to write if a+b+c <= 2*max...? You also don't really need the else. Niiiice work! :) More
format format format for t-veky 1
Daaaaamn, that's clever. And short. :) More
!r-veky 1
Thumbs up for newlines! In a quine, they are actually awesome! :) More
< veky-StefanPochmann
This is VERY impressive! Thumbs up :) More
1
2
3