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.
This comment is hidden because it contains spoiler information about the solution
i just read it up in the documentation, the difference beetween 3 dots and 2 dots is, that 3 dots excludes the last value, while 2 dots includes it.
So this solution would have to be adjusted to (2...number) if you wanted to use 3 dots :)
Cool thanks for the hint :-)
You dont need to use return in ruby. It automatically returns last statement. Same with the brackets arround conditions. But I will add space around '>'.
Wouldn't be nicer to use range like (3...number)? Number 2 will be never ok and using 3 dots is easier to read.