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.
There is a simpler method. First, it is enough to create a list, although a dict can also be created using this method.
You wrap what you copied from the site in quotes, and then work with the result as a string.
With the help of regular expressions, you remove all unnecessary things - numbers, hyphenation - leaving only the names of the fruits and the spaces between them.
And finally, you can use the usual replace, replacing spaces with quotation marks, commas, and spaces.
This comment is hidden because it contains spoiler information about the solution
Thsi kata has been retired and it does not accept solutions anymore.
Hi! What does "You may take your time to refactor/comment your solution. Submit when ready." mean.
I solved the problem, but it doesn't count.
Finding the sum of an arithmetic progression using a loop is terrifying