Can Python return different types?

In Python, you can return multiple values by simply return them separated by commas . … In Python, comma-separated values are considered tuples without parentheses, except where required by syntax. For this reason, the function in the above example returns a tuple with each value as an element.

Sizin İçin Seçtik  How do I test my 5G speed on my iPhone?

Leave a Reply

Your email address will not be published. Required fields are marked *