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 is what I was trying to do, but didn't think to just split the words by split(' '). Good job!
If you really know Python, this is easy to read.
There are so many geniuses out there omg. I see so many single line solutions! How did you arrive at this? What did your psuedo code look like?
genius
I figured you could probably write it all on one line, but in doing so it is not easy to follow what is going on. So it is definitely clever, but not how would write it.
Once you understand a little about list comprehension for strings (if you can even call it that), this solution isn't difficult to read. I tried the same method but had trouble generating the space between words. It didn't occur to me to use a nested list to solve that problem.
This is very much readable if you make it a bit less cramped (like in my solution).
LOL let my solution be a warning to those who are (like me) trying so hard to produce a one-liner that would NEVER be best practice!
This comment is hidden because it contains spoiler information about the solution
This is cool, but it's not easy to read. Code should be as simple and easy for readability and maintainability.
true this is a good case of bad pratices the code should be/try to be easy to read to any person new to the code
Difficult to read
Mine is similar :)
You don't need the spoiler flag here. For some reason I cannot unmark it even though I have over 500 honor.
Description says:
1000 ≤ year ≤ 9000
Loading more items...