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.
hi! len(num) should be variable too as str(num), and list(str(num)) is unnessesary here. and enumerate can start from 1. And it is good solution!
Yep, no need in str(value) and len(str(value)) every iteration. Unnecessary operations.
This comment is hidden because it contains spoiler information about the solution
I've the same solution. But it will be problem if punctuation will be inside word. We need to check words for punctuation and append them to our expression if they will be in the list. But for this kata this solution will work.
Best practice for pythonist.
best practice