15
LLluma
2 15 30
1029/ 1195
LLluma
Last seen 1 month ago
Member for 10 years, 3 months, 23 days
Difficulty Normal
Best reviews / Newest reviews
Functional-PositronicLlama 3
zip(*matr) That is enough :D More
Long Repeat(for, for, if, if)-vlad.n 1 1
Better do not import something in the body of a function. 'len(letter*i)' just equal 'i' More
First-hanpari 1
eq = lambda w: sorted(w.lower().replace(' ', '')) More
Count Inversions-CounterSparta
temp = res[j + 1] res[j + 1] = res[j] res[j] = temp is equal to res[j + 1], res[j] = res[j], res[j + 1] More
First-Alexandr_Svirbutovich
-(n>=len(a)) Nice solution More
First-Losiowaty
Good one! Last condition can replace by: return bool(matchObj) More
First-daik_
'if len(data) == 0' --> better variant 'if data' More
First-vovaminiof
Indentation in a list comprehension? Not bad! More
First-Daniel_Cieslinski
line.lower() is doing nothing. Probably you mean line = line.lower(). String type in the Python is immutable, so all string methods like lower, upper and so, is returning a new string but not modify existing. Better not name variables like min, max, dict and other names which are names of built-in f More
it's not a clever solution-piotr.sawicki
For checking if string or list is empty, use 'if not line:'. That is more pythonic. More
Regular Expression-DahliaSR 1
It is better to import re outside of the function. Also is better compile pattern before using. More
iterator with list comprehension-neverm1
return [n and next(s_iter) for n in items] More
Monkey Typing-CounterSparta
sum(word in text.lower() for word in words) More
First-danikmil
del stack[-1] <===> stack.pop() More