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.
if your getting mad at that don't look at mine
Becouse every time when there is string concatenation a new variable is created in separate pice of mamory. Tis how python work, this solution is simple to implement but it use a lot more memory then solutions without string concatenation.
This comment is hidden because it contains spoiler information about the solution
I dont' know where you get that from. Here
enumerate
doesn't make sense since we only need the indexes, so it would generate an useless additional variable on each iteration. The purpose ofenumerate
is to provide at the same time an index and the variable at that index. If you don't need both, there is nothing pythonic in using it.It gets the job done, but using enumarate() is more pythonic.
Why?
This comment is hidden because it contains spoiler information about the solution
Good practice is to add spaces between concatenation.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Dont thik its look like "Best practice", first becouse of string concatenation, second is redundant for loop.
This comment is hidden because it contains spoiler information about the solution