Tuple vs list while returning values from a funtion?

which should be preferred while returning a value from a function - tuple or list? why?

A tuple should be preferred because tuple objects are immutable, which means they can’t be replaced in any scenorio. You may also use list object but they are replacable, which means function returning multiple values, can have some values which may be audited by someone.

Hope this cleared your Doubt :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.