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.
the function "enumerate" is so cool!
Took me a few iterations to get this one liner.
i refused to admit that you guys got this solution the first time you went through
In general, no it's not good practice to put everything on one line. In this case, it's fine. This is a very pythonic solution, this would be just fine as is in almost any codebase (depending on usecase).
is it good practice to put everything in one line? it's elegant, but may get hard to read, once things get complicated.
I had exactly the same solution!
Haha clever
This comment is hidden because it contains spoiler information about the solution
Cara, gostei muito da sua solução.
Sinceramente me fez pensar em como eu ainda tenho que melhorar, porque a minha resposta teve algumas linhas a mais, mas isso só serve de incentivo para continuar evoluindo
a
I don't know how that would be more time efficient since the time complexity is O(n * c) where c is the number of vowels. Ie it has to loop through the entire string for every value because of replace method. The given solution is O(n) complexity.
My solution... Lol :)
This comment is hidden because it contains spoiler information about the solution
Dude, why your code return "<generator object dis_trol at 0x00000186174DBB90>"
instead of a string
they were?
Loading more items...