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.
For anyone wondering why you can use bool as 1 and 0 https://github.com/python/cpython/blob/main/Doc/c-api/bool.rst#id3
Nice one! Got something new for me, thx :)
Yes. True is 1
thanks. my bad.
I think we just got lucky that the test cases didn't cover uppercase vowels.
Unless I am missing something
Really nice!
does this work because booleans in python are also 0 and 1?
Yeah but then it wouldn't be a 1 line solution. 👀 Can't be having a best practice solution on Codewars that's more than 1 line long!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
this wont work if the sentence has capital letters?
maybe i'm wrong, but expressions a+bc and cb+a not make sense, how do you think?
Loading more items...