
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)
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)