returning a tuple python code example
Example: return tuple python
def foo():
return "hello", "world", 21
t = foo() # returns ('hello', 'world', 21)
a, b, c = foo() # a = "hello", b = "world", c = 21
def foo():
return "hello", "world", 21
t = foo() # returns ('hello', 'world', 21)
a, b, c = foo() # a = "hello", b = "world", c = 21