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-NikitaYatsura
text.split() - делаешь дважды. А как сделать так, чтобы только один раз? More
First-Alex_Rybalka
подумай, как сделать код читабельнее More
First-codeAligned
you don't need to convert letters into a list More
Maybe too many lines-Cocoolanu
I agree, it worth to think how to make the text smaller More
beginner-cougarmilk
Not bad. I hope solutions of other players showed you how better it can be solved More
namedtuple to help visualise the thing-KODeKarnage
I can't resist of giving +5 for well commented solution + namedtuple Very educational. Thank you More
First-ukrainer.dp
перед отправлением решение, лучше все-же убирать лишние комментарии. More
First-ukrainer.dp
чтобы не делать вот такую лестницу из if-ов def checkio(data: str) -> bool: if len(data)>=10: if re.search(r"[A-Z]", data): if re.search(r"[a-z]", data): if re.search(r"[0-9]", data): return True else: More
First-Alex_Rybalka 1
HUM = self.human.h_quotes ROB = self.robot.r_quotes не надо капслочить для локальных переменных More
First-Alex_Rybalka 1
к чему эти ванлайнеры на 26ой и 28ой строке? More
collections and itertools-lsdda
not bad, but it is always better to do improrts outside of function More
First-josefernandez 1
if condition: return True else: return False Can be always replaced by return condition More
First-josefernandez 1
You can start thinking of better names for variables. For example, ‘a’ can be called ‘words’. Good naming is also part of the developer’s job. More
First-Patrick_vG
`len(elements)` can be literally removed More
First-fomenbox 1
Как вариант к улучшению Если первое условие заканчивается на `return` то `else` можно не использовать. Поэтому решение можно переписать так if text.count(symbol) < 2: return None x = text.index(symbol) + 1 return text.index(symbol,x) понимаешь почему? More
simply-rybld2
Constants can be defined outside the function More
question ?-rybld2
especially when you can simply import it from math module :) More
First-aplusinstrument 1
немного по условиям еще подсказка return None можно просто заменить на return а условия можно просто объединить через `or` итого это if text.find(symbol) == -1: return None if text.count(symbol) == 1: return None можно заменить на if text.find(symbol) More
First-Ingvar
Попробуй еще сделать вариант, где мы проверяем в начале, что есть 2 символа и тогда уже делаем все необходимые вычисления. More
1 2 3 4 5 6
7
8 9 10 11 12 13 14 15 16