One liners may look impressive but they often aren't easily readable. My solution is identical to this one, except I assigned a couple variables to make it more easily understandable.
Also, there is no point on counting the length of digits for every digit.
One of the best ways, I would dare say, particularly when coupled with the effort of actually solving a kata; as a rule of thumb, I would suggest all my neophytes students to spend at least half the time they spent solving a kata reading other people's code.
One liners may look impressive but they often aren't easily readable. My solution is identical to this one, except I assigned a couple variables to make it more easily understandable.
Also, there is no point on counting the length of digits for every digit.
spoiler tag!
This comment is hidden because it contains spoiler information about the solution
can you give a hint .. how to deal with the binary
whenever i need to generate a list i like to use the " y = x for x in list" format
tell me pls i cent solve
help
im not solve very good
#:-(
lambda?
Anytime and if you might deem my opinion interesting again, you know where to find me :)
One of the best ways, I would dare say, particularly when coupled with the effort of actually solving a kata; as a rule of thumb, I would suggest all my neophytes students to spend at least half the time they spent solving a kata reading other people's code.