Introduction
Sometimes you want a function to give back more than one answer at the same time. Multiple outputs let you do that easily.
When you want a function to return both the result and some extra information about it.
When you need to get several related values from one calculation.
When you want to avoid running the same code multiple times to get different results.
When you want to keep your code clean by grouping outputs together.
When you want to return both a value and a status or error code from a function.