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.
better use an enumerate's argument for the start index
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
@Unnamed, @Blind4Basics: There is a Guido's article about List Comprehensions and Generator Expressions advantages - http://python-history.blogspot.com/2010/06/from-list-comprehensions-to-generator.html
But yeah, it's more about comparison between LCs and (map with lambda). Thanks for correcting me
I'm sure this should be best practice
This comment is hidden because it contains spoiler information about the solution
I think that we don't need to create a dictionary, a list is enough
Also no need to check if number is in the dict (easier to check if it's less or equal than 100)
This comment is hidden because it contains spoiler information about the solution
a function returns None by default so you can reduce your code
I knew about that solution but I don't think that it's the best practices.
Yes, it's one-line solution but according to the pep8
we should limit all lines to a maximum of 79 characters.
As for me even if my solution has more lines it's more readable
This comment is hidden because it contains spoiler information about the solution
no need to iterate over elements. If we try to check if item in our sequence it will do that for us. It item exists in sequence it will move the cursor on it
This comment is hidden because it contains spoiler information about the solution
Loading more items...