22
Selindian
8 27 45 Leader of the month
2882/ 2945
Last seen 1 hour ago
Member for 2 years, 3 months, 15 days
Difficulty Easy
I'm here to learn / improve my Python skills and help other people if possible.

Best reviews / Newest reviews
First-StefanPochmann 1
I tried hard, but I don't get it. You are not using the classical board coordinates, thats for sure. I tried to understand your code using the example `4, [(2, 3), (0, 1)]`. I'll simplify it a little here: 1. `D, E` of this example are `{1, 5} {-1}` 1. `i, j` results then in a list like `[(0, 0), More
First-cimarronm
I didn't realize that dicts didn't have a fixed order before Python 3.6 / 3.7. Your solution gave me the opportunity to read at https://realpython.com/python-ordereddict/ what you can use OrderedDict for under current versions of Python. Interesting. Thank you for sharing your solution. More
First-Serg900vd
I really like your solution as it's readable, easy to understand and relative short. Thanks for sharing. More
Convert "0" to True, take only the first True values, then sum up-z60x43knmf
Instructive. I had never read about takewhile before. Your code taught me something. Thanks for sharing. More
deque (fewer assumptions)-adamspj 1
Simple but elegant. I solved this myself back then without a real queue but only with a list. So thanks for sharing your solution. More
Tried to understand solution of Phil15-Selindian
This is my attempt to understand Phil15's solution. If I have misunderstood anything here, please feel free to correct me. More
First-kisungch
Yes, this mission is perfect for programming a recursion. Thanks for sharing your nice solution. More
Helpful-veky
Indeed creative. I like the function itself using *args. Also the lambda is nice. I would have not thought about it. Thanks for sharing your solution. More
str method-Phil15 1
Yes, that makes sense. Why define a function if there is already one in the standard system? Thanks for sharing your solution. More
sum(starmap(!=, zip_longest))-Phil15 1
Nice combination of starmap, operator and zip_longest. I like your solution. Mine was only using zip_longest, as the rest just didn't came to my mind. More
First-emmermarci
Even if it works to define the function `is_acceptable_password` five times, it is not conducive to readability and clarity. I dislike it. More
First-tokiojapan55
Simple. :-) I like it. Thanks for sharing. More
Second-book1978
Clear and readable. I like it. Thanks for sharing. More
First-mortonfox
Your lines 2 + 7 with `i` make no sense as they don't affect the result. More
First-lxf42
Good solution. In my opinion you should switch max() and int(). return int(max(x for x in str(number))) Then the program only need to change the max string back to integer. In addition there is no need to have a loop when you use int() last, as max() returns the maximum value of the whole str More
First-heretic2010 1
Not bad, but you can use max() on a string to get the highest char of it. Than just convert that back to int and you are done. There is no need for the loop. So a one-liner could be.: return int(max(str(number))) Example: >>> int(max(str(234987))) 9 More
Si, comprehendo!-veky 1
Thank you. Your solution has showed me how lambda and compression could be used. This is still relatively new for me. More
First-dx2-66
Well done. I really like your solution, but personally would have used something like splitted_text = text.split() before the loop to avoid text.split() in every loop. More
M stands for middle-robert.bedner
Nice and short but readable. I like it. :-) More
First-cardinalus
Well done. I like this one-liner, as it's understandable. Also I have learned about "join()". :-) Thank you. More
1 2 3 4 5
6
7 8