26
Елена Корлюкова
Last seen 2 years ago
Member for 4 years, 2 months, 3 days
Difficulty Normal
Why write "if begin in text else 0 and
if end in text else len(text)"
when the condition says "The initial and final markers always exist in a string and go one after another"
More
может я ошибаюсь, но код выводит неправильный результат для некоторых строк, например 'mama','trrr'
More
You can write like this
sorted(numbers, key = lambda x: (-numbers.count(x), x))
More