40
oduvan
15 34 57
10059/ 10664
Last seen 1 day ago
Member for 13 years, 10 months, 21 days
Difficulty Easy
love it!

Best reviews / Newest reviews
First-ymraintree 1
Python is very smart :) line 8 can be: if w in result: result[w] += 1 More
First-ikkkb 1
Not a very effective, but definitely very interesting and educational. :) Thank you. More
First-aplusinstrument 1
max(data.values()) это значение не меняется на каждой итерации цикла и каждый раз заново вычисляется. На много лучше было бы его вычислить один раз за циклом и потом уже использовать заранее вычисленное значение More
First-aplusinstrument 1
вопрос. Почему, если я поменять a = list(numbers_array) на a = numbers_array и return sorted(a, key=some) на return sorted(a, key=abs) решение все еще будет верным? More
First-okaoka0523
if condition: return True else: return False is the same as return condition or return bool(condition) More
First-likewind
line 7-9: you can do substring check using operator `in` >>> 'are' in 'aresjfhdskfhskd' True More
My first solution for min/max task.-Oleksandr_Zaliskyi
this is weird. Max and min functions are so different. More
So simple...-Phil15 1
I wouldn't say this is a very fast way to solve. You should go through all the elements of instructions 4 times. More
Using set()-Eric_Meyer
you can also say if elements > 1 More
First solution with 2 functions-likewind
line 8 and 25: when you need i and items[i] inside for it is better to use function enumerate More
First-Kremen
можешь подумать, без каких скобок в строке 6 можно обойтись? More
Gets it done-martin_b
using title is great idea, thanks More
First-Vlad2018 1
I don't think that solution with RE can be speedy More
Conversion from CamelCase-anuarora
I wouldn't call list variable somehow_string More
2 functions-likewind 1
line 1-21 - this is exactly how dicts work More
First-alex.kov 1
я бы `text.find(begin)` и `text.find(end)` сохранил в отдельную переменную, а ты то пересчитываешь это слишком часто. а еще, для проверки наличия символа в строке можно просто использовать оператор **in** вместо метода **find** More
First-alex.kov 1
haha :) рад, что ты запомнил :) More
First-Padre
строка 9: очень креативный подход, но `text[-1] == '.'` выглядит короче More
First-Julia_Makeyeva
if len(data) % 2 == 0: это все равно что if not len(data) % 2: но в этом случае замена не принципиальна, но если поменять условия местами, то можно и так записать теперь if len(data) % 2: result = data[len(data)//2] else: b = len(data) // 2 c = b - 1; More
First-Julia_Makeyeva
Еще result = можно заменить на return т.к ты все равно следующей строчкой его возвращаешь More
1 2 3 4 5 6 7 8 9 10 11
12
13 14 15 16