You can return many things in python

You can return many things in python
You can return many things in python

Python supports multiple returns from a single function which is not possible in most of the modern day programming languages 

def example():

       Return ‘abc’, 10

print(example())

print(example())

Output:

(‘abc’, 10)

(‘abc’, 10)

Posted in PYTHON.

Leave a Reply

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