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 comment is hidden because it contains spoiler information about the solution
Don't do micro-optimizations on places where it doesn't matter!
This comment is hidden because it contains spoiler information about the solution
Lol.......
String concatenation is bad when you use it in long recursive functions or loops because, string being immutables, at each step of the concatenation you create 2 strings objects in the heap space (memory). But here, adding just 2 strings together, this is bullshit to say that this is not best practice...
Other ways to do the concatenation:
''.join(list of strings elements)
for unknown or long lists of strings"{}{}{}".format(a,b,c)
for short and known number of strings elementsCould you explain why is that?
String concatenation with + is never best practice in Python.
Could actually be best practices if it followed pep8 :D
Beautifully formatted! :D
One of the best. I can't click best practices with so many pep8 violations though.
Come back in 8 months and tell me what this means.
One of the better ones. Not as readable as mine but better than most :D
Lines strictly less than 80 columns wide are strongly preferred.
lol, the cyclomatic complexity of this is ludicrous!
lol, best practices? For making it as unreadable as possible. :D
Too much unneeded complexity. Reminds me of potato programming. :D