27
marcopunteri
6 23 40
4193/ 4195
Marco Punteri
Last seen 1 day ago
Member for 3 years, 1 month, 11 days
Difficulty Advanced
Best reviews / Newest reviews
classic-kdim 2 1
is "while ..." the same as "while True"? Never seen it before More
Partial-veky 1
i like the partial part, it's a way i always forget :) More
HOME - "Sum Numbers"-jsg-inet 1 1
why do you pass the " " argument to split? More
mathematically-PascalFirley 1
i always love to see my solution in just one line, i'm too verbous :) More
use lambda is great here-apotokin
one line function so a lambda, ok for me! More
First-jani
Why don't you use "or" instead of the two if clauses? More
First-yotamorgad
IMO re is not so readable, but very powerful, and so i don't like so much the "half use" you do More
len if isdigit-m.kurapov
it works, but i can't call it clear :) More
First-yoichi
I think this solution is really elegant, even if it's quite puzzling if you don't know how groupby works, expecially for the identity as default keyfunc value! More
Operator-oduvan
clever but not clear, talking about classification :) More
First-Sairaj
why don't you use just a single return statement? More
Fourth -ex1list
i like the math approach but your seems to be unnecessarily complicated, you coud achieve the same result using the // operator More
First-liuq901
This is because lists are mutable and passed by reference, right? I like it, despite the classification (imho it's a creative solution, not clear) More
Second-bloodyrabbit
ok, yield from is like necromancy for me xD Out of joke, if i read such a code it's quite obvious to me, but i'm not able to write it from scratch More
Convert to Str, delete extra symbols, split by ' ', int result.-Swarvenstein
wow, this is really creative! Never thought that str(array) could work in that way :) More
army battle-Alexey.K. 1
in the fight method of battle class is it necessary to duplicate the couple of return? Aren't enough the second ones? More
First-nikolaylitvinchuk6
hi, you can write in a more compact way adding the underscore first (if len is odd). Then the loop is one More
First-jefoon93
Hi, len return already an int, you can write simply len(str(a)) More
First-vskavronsky
Hi, i like the chioce of the mathematical path. Nevertheless you have a shorter way using log More
1
2