I worked with some code and realized that everything became much simpler when one method returned 4 values. Working with such traditional languages as C ++ and Java, where methods return only one value, I came to surprise
Is there a limit on the number of values returned by a Python function?
Such things work effortlessly. Is there a limit?
def hello():
return 1, 2, 3, 4, 5
a, b, c, d, e = hello()
print a, b, c, d, e
Roughly enough, I did not find the answer to this question
source
share