how to return more than two values in python code example
Example 1: python return multiple values
def x():
return 1, 2, 3, 4
a, b, c, d = x()
print(a, b, c, d) # 1 2 3 4
Example 2: return more than one value python
def func(a, b):
return a,b #Returns values a and b as a tuple