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
Elementary
HATE RETURN
How does this have anything to do with math?
Clever, but this code is less readable than if you split it into several functions with explicit names.
genius
oh yeah range does do these things don't it
total = 58 ? 🤣😂
This comment is hidden because it contains spoiler information about the solution
Is it going to look more like one liners in a production environment or will it be more segmented like mine?
If I am not wrong, this is the best practice because of the following reasons:
Maybe for this particular case, using '*' after the keyword 'SELECT' could lead to the same result, but I think it is good to develop the habit of just fetching the required columns by using their names and thus avoiding the possible fetching of unnecessary or sensible data.
clever, but suboptimal
^^ what johnny said
Oh, I totally forgot that range can do this.
And once more elegant one-liner!
Bravo!
Loading more items...