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.
Your also mistaken, it does include
yourPoints
.Does it pass the test? Yes. Good, that's what required.
In the Kata description: """ Your points are not included in the array of your class's points. For calculating the average point you may add your point to the given array! """
Your solution does not seem to include "your points". Also '.reduce' fails if the list is empty. '.fold()' handles that case.
Very funny!!! Thanks!!!
I don't know why regex is so difficult, my head is so big
This works, but trust me, a regex solution would make the code a lot cleaner. It's easier to learn than you would think. Consider giving it a shot.
The task specifically asks for Regex validation. This is not a valid solution to the task.