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.
cool
nvm, chat-gpt said this:
a, *b = ...: This is the iterable unpacking syntax. It assigns the first value of the iterable to variable a and the rest of the values to a list variable b. The * (star or asterisk) is the extended unpacking operator introduced in Python 3.
What the start before the 'b' does?
you dont need the square brackets; its slightly faster without
This will raise a ValueError if there's more than 1 ':' in a str "part".
a, *b = i.split(':')
would correct it.
Pls, can you show me a method that dont use brute force ?
This brute force method timed out on my computer.
Good copying skills.