57
veky
22 48 64 Leader of the month
44593/ 53887
Last seen 3 hours ago
Member for 11 years, 6 months, 8 days
Difficulty Advanced
We shall not cease from exploration, and the end of all our exploring will be to arrive where we started and know the place for the first time.

Best reviews / Newest reviews
First-monica
list, max and min are builtins. Hint, hint. ;-) More
First-monica
Also could be generator expression (with any), but this is nice too. More
First-monica
OK, but you might want to learn about sets and & (intersection) operator. Faster and cleaner than rolling your own. More
First-monica
That's the way (aha, aha) I like it (aha, aha). :-D More
First-monica
Also obvious. You could check for divisibility by lcm(3,5)=15 in line 12. :-) More
First-freeman_lex 1
You could have cached that range(len(D)). And "if 0 in bla" is here "if not all(bla)". ;-) More
First-rbrian 1
You can initialize all (l13~15) at once: lower = upper = digit = 0 You can ask ints for truth directly: return len(data) >= 10 and digit and upper and lower More
First-rbrian
Too many cases. ;-P Also, writing '00' instead of '100' is deeply confusing. :-P More
First-rbrian 1
It's "length". Not that it matters much. :-) More
sorted frequency dictionary-rbrian 1
1. You don't need to sort and extract just to find maximum. See max with key argument. 2. Lines 4~6 can just be "for letter in text.lower():". This is not C, text will be lowered only once in any case. 3. Line 8 is pretty ugly. You can use defaultdict(int), but even better, the name of a varia More
create possibilities list-rbrian 1
You don't need copying in line 9. Unpacking is much better when you use it consistently with your structure: line 6 is row_zero, row_one, row_two = game_result range(0,3) is range(3). Or even better, use zip(row_zero, row_one, row_two). That "str"s everywhere are probably worse than More
First-rbrian 1
Whenever you import copy, a python dies somewhere. ;-P More
OilPie-bunnychai
"size+g" is not really clear. But neither is input format, so... :-) More
First-smilicic
Hm, this gives me some [idea](http://www.checkio.org/mission/digit-stack/publications/veky/python-3/pointless/)s... :-] More
Second-martin.beseda.3
About that horrible line 17, I think I have good news for you: tuple comparisons. (a, b) < (c, d) <~~~> a < c or a == c and b < d You can also learn about key argument to min and max. More
First-martin.beseda.3
First, a + a + a is really a*3, even when a is a str. Now you know that, remove the duplication. :-] More
First-martin.beseda.3
You don't need "len(l)". Negative indices are fine. :-) More
First-martin.beseda.3
"lambda i: abs(i)" has a much nicer name. It has three letters. ;-) Google eta-reduction if you want to know more. ;-) More
itertools-gyahun_dash 1
Wow, heavy artillery. :-D Even I didn't know about operator.indexOf. Really cool. :-) More
First-martin.beseda.3
This is not C (nor Perl), you don't need parens after while, if, ... base += -c if isfib(c) else 1 "c = 0 # counter" is a really weird comment. If you want to call it counter, do so. You can even have two names: counter = c = 0. :-D Calling "fib" a function that _checks_ whether somethi More