16
Kverde
8 21 39 Leader of the month
1280/ 1445
Last seen 1 year ago
Member for 8 years, 3 months, 10 days
Difficulty Normal
Best reviews / Newest reviews
with comment-Sim0000 3 1
what do you think about change name of predicates to more specific like c1 = len(password) >= 6 len_ge_6 = len(password) >= 6 More
title-yoichi 2
I didn't know that title separates words with any non-alphabetic characters print('test test_test test5test'.title()) Test Test_Test Test5Test [Documentations on str.title](https://docs.python.org/3/library/stdtypes.html#str.title) And there is the important precondition "Input data w More
itertools.cycle-Sim0000 2
This solution makes you understand how **zip** and **cycle** work! More
count-Sim0000 2
The good solution based on the fact that instructions can be processed in any order. More
Toad-veky 1 1
Are the states generated by another python program? It is interesting to look at this. More
First-mini.maus87 1
In this task i understand that to rotate matrix need only two funcions: grille=["".join(c[::-1]) for c in zip(*grille)] grille = tuple(zip(*reversed(grille))) More
Partial-veky 1 1
It's very interesting solution! More
Short-BrianMcleod 1
You can remove second list because sorted takes iterable. More
Simple recursive function-Aleksandr_Komarov 1
This solution is understandable, but it has one drawback: it builds a whole list. In python it is more convenient and faster to use a generator (example, yield), the second advantage is that you don't need a variable to collect the result (r in this code). More
First-cardinalus
Interesting solution! I tried to change line 7 and it's work res.append(i[-1]) if "PUSH" in i else i == "POP" and res and res.pop(0) More
Third-khanukov
I think it could be little more readable if you change lines 4 and 5 if (c == "POP"): ans = ans[1:] else: ans = ans + c[-1] More
Counter and two sorted-Kverde
This approach was described in Python [Sorting HOWTO](https://docs.python.org/3/howto/sorting.html#sort-stability-and-complex-sorts) documentation. More
Concise algorithm-Igor_Sekretarev
Why is it faster than a slice? More
Life is Short!-PHANTOM0308
True and False is converted to a list index consisting of True and False :) More
First-antichrist_b
Usually, for with items more useful than for with range for i in range(len(array)): for element in array: it doesn't need indexes. More
Solution for "Split Pairs"-Edyta_Weronika_Kawala 1
function is_even can be simpler return num % 2 == 0 More
generator-Leonix
This solution needs to user slice two times. I think it's better to iterate over indexes of string and make one slice. More
For words in text-Kverde
We split words from text and go through them. If we match word from text and word from list we increment index word from the list. At the end if index equivalent length of the list of words we know that text contains all of words from list in same order. More
splitext and composite functions-Kverde
splitext is same as os.path.splitext. More
First-Doseg
I think it's more understandable than the solutions in the Clear category :) More
1
2