Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
You can make a copy first and empty out the copy
Not an issue.
why not use "!= 0" then?
Becaues strncmp returns 0 when two strings are same And in bool data type 0 is considred as false.
for this reason you have to assign it like this.
What does "best practice" mean here? ;-)
If you don't define it properly then maybe we're talking about Java-like code ;-)
just boolean shortcuts, nothing hard or exceptionnal in there ;)
(edit: much clearer than bitwise operators, for example!)
It can.
That's one interpretation, LOL.
Now my:
Regards,
suic
Indeed! I laughed when I saw this solution was upvoted in this category :')
Hi, I've tried your code and I was able to repro this issue. I don't have any code in tests which would produce high amount of output to
stdout
. I don't think that this is a Python issue. Try to check the Github issue list or crate a new issue.Thanks,
suic
I hear you. What would you suggest, though? A modified duplicate of the input objects?
I don't see any disrespect, I understood your reference and found it humorous :) The fork I refered to was made exactly from that solution :)
Regards,
suic
Hi,
I don't hate PEP8 but I hate PEP8ism :) (i.e. treating PEP8 as a religious text). PEP8 is a useful set of recommendations and I use a lot of them at work. Applying PEP8 too strictly can lead to less readable code and sensless fights between developers.
I'm also not a fan of "bestpracticism" :)
Regards,
suic
P. S. Watch this video :)
No worries, otheriwe it's a nice solution. And without that
sum
it's easily one-linerizable :) Regards, suicLoading more items...