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.
frrr
that is illegal i*2 is simply superior
thank you for the docstrings that lets noobs like me learn :)
Cleber
The solution was written in Python 2. Python 3 only has range, which is what xrange was in Python 2.
Clean. How did you make that xrange work? As I know is simply "range"
omg , it 's really hurt when i finally come to a possible but not elegant solution
Nice! very clean.
great job
str(digits[x]*2) - gives you a string, it consist of one or two characters
map( int, str(digits[x]*2) ) - transform your string to an int array
sum ( ---- ) takes sum of the elements, if the multiplication result is single digit then sum of array's elements equal to the element value. if the multiplication result is two digits then it takes sum of it, like should be described by the algorithm
How does this approach handle when the resulting "digit" after multiplying by 2 is greater than 9?
Ahhhhhhhhhhhh. Nice job, this looks very clean.