19
Talim42
5 22 29
2115/ 2195
Last seen 6 years ago
Member for 10 years, 1 month, 5 days
Difficulty Normal
from Kazan, Russia Learned Python from checkio

Best reviews / Newest reviews
First-cdthurman 3
elif 'POP' in cmd.upper() and len(stack) can be rewritten shorter: elif 'POP' in cmd and stack More
First-dabuek 1 1
1. string module is imported but never used in code 2. 'for y in range(0, 5)' can be written shorter 'for y in range(5)' 3. first two cycles are using magic numbers 5, 6 anyway. They could imply fixed word positions without much loss. And something should be done about code repetition. Pacck two a More
First-pa.khromov 1
Code could use some simplification: cache=[] for item in network: cache.append(item.split('-')) or even cache = [item.split('-') for item in network] More
Second-Renelvon 1 1
Why to call __next__(), when you can just use next()? Is it faster or what? More
First-Tsutomu-KKE 1
Twisted, Puzzling, Obfuscated and Weird More
Batteries-veky 1
Is it tribute ti Bunnychai in comment? :) More
First-Tanklover
if array != [] -----> if array sum(array[i] for i in range(len(array)) if i % 2 == 0) ----> sum(a for i, a in enumerate(array) if not i % 2) More
First-serdaroncode 1
Why not 'return max(args) - min(args) if args else 0'? 4 symbols shorter. More
First-Chatelain
endswith! that's a handy method, cool More
First-jasonio
Nice. It looks like everyone is aware of this method excrpt me :) More
First-sqeph
sub_tuple would be more appropriate name)) More
resultado da velha-anderabr
It looks like spaghetti code without gotos :) More
First-mekswhy
Could be placed in creative solutions as well. More
UnionFind-veky 1
Setdefault() returns the key value available in the dictionary and if given key is not available then it will return provided default value. So setdefault(x, x) should be always equal to x, right? More
First-savao
n = [] for i in network: n.append(i.split('-')) can be made clearer and shorter: n = [item.split('-') for item in network] More
First-chzzz
Naive, but clear and short. Good job. More
First-coells 1
Hmm. What '& ~1' does? Looks like it could be useful in golf code missions. More
7 strategies-macfreek 1
Did you really write this code? It's confusingly outclasses other solutions. More
Worst-rfonseca
It is clear, all right. Commenting, variables naming, extra functions for easy reading. Nice. More
First-MagiMaster
There is set comprehension in Python: def col(grid, x): return {r[x] for r in grid} More
1
2