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.
haha
I got it - thanks :)
I tested the code - I see that it is working. As I understand, range returns a sequence of numbers, so in the case a = 3 and b = 3 this function should give you the sequence 3 to 4 (min(a,b) = 3 and max(a,b) + 1 = 4) - so sum would be 7, not 3.
Do you know how
range
works? Do you know you can copy the code and test it yourself, on your computer or even here by clickingfork
below any solution?Can someone explain, why this is also working for the case, when a and b are the same? I see that the code is working, but I don't get it.
Son of a...
Ugh. I way overthought this one.