35
yoichi
10 32 46
7495/ 7695
Yoichi NAKAYAMA
Last seen 10 months ago
Member for 10 years, 3 months
Difficulty Normal
Best reviews / Newest reviews
result[isinstance(item, int)]-flpo 4
Magically, there is no if sentence! More
list comprehension-shenghanteng 2
You can remove [] and use generator expression, instead of the list comprehension. More
First-Sim0000 2
Great! This code explicitly expresses that only total() depends on food and drink name. More
filter-Sim0000 1
Good use of filter(), easy to understand. More
First-mlahor 1
We can make it more simple, by replacing "while number/2>0:" with "while number:" More
Lambda oneliner-assargin 1
Excellent. As with sum(), you can use a generator expression with str.join(). More
First-fed.kz 1
Your use of *bool(n//d) to get empty string is good! More
alphabet shifted-veky 1 1
Excellent! It doesn't require str.join. More
max comparative advantage (one line)-juestr 1
It's too simple :) Just adds the k selected pieces. More
Replace, rinse, repeat-veky 1 1
You don't have to replace '_' before applying title(). More
First-l.szyman10 1
I think it will be more clear if you use "and" instead of bitwise &. More
Second-tigelane 1 1
The function has_number() returns True for non-ascii number representations. ``` >>> "①".isdigit() True ``` More
First-SmYul 1 1
We can access each tuple element by index, so it is unnecessary to convert input tuple (elements) to list. More
First-fed.kz 1
Great! I did not come up with divmod... More
First-Sim0000 1
This solution clearly fulfills the request. More
First-eugene100372
Wow! The even/odd judgment is reversed by increnmenting. More
3-liner: zeeeeeeeeep-przemyslaw.daniel
Interesting use of array indexes! More
one-linear simple!-serg3y1999
Cool oneliner solution! You can also obtain same result without [], too. More
First-max.rotenko
I didn't know there was the statistics module. Thank you. More
1
2