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.
I think this is more correct because the input can be a negative number.
And -1 is not used for plurals
This comment is hidden because it contains spoiler information about the solution
And I thought mine was clever, this one is the best easily.
Hey, thanks so much for the responses. I can see now what I've done is poor "grammar" if you will. I can see how a cummulative effect of these mistakes could make the code unessasarily difficult to read.
There's NO problem with your solution, just
... != None
in your code looks strange, cuz it does not conform to the PEP8Just a little suggestion.
love this
Ok thanks. I'm just not sure what you mean, could you explain?
This comment is hidden because it contains spoiler information about the solution
This is my favorite sort of kata, thanks for making it. Simple explanation, but the challenge comes when you actually try to work out how to do it. That being said, it makes total sense for the odd numbers to ignore the middle number. But, ignoring the two middle numbers for even numbers makes zero sense to me. I think the two middle numbers should be included for even numbers otherwise you aren't really determining if it's balanced or not.
This comment is hidden because it contains spoiler information about the solution
Thank you for the response my friend
when you have an
if
statement in a one liner, you need to have anelse
alsopython throws a syntaxError
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...