The Python Oracle

How can I return two values from a function in Python?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Peaceful Mind

--

Chapters
00:00 Question
00:55 Accepted answer (Score 419)
02:51 Answer 2 (Score 30)
04:09 Answer 3 (Score 17)
04:27 Answer 4 (Score 8)
04:42 Thank you

--

Full question
https://stackoverflow.com/questions/9752...

Accepted answer links:
[named tuple]: https://docs.python.org/3.6/library/coll...
[UnmarshalResult]: https://marshmallow.readthedocs.io/en/2....
[namedtuple]: https://github.com/marshmallow-code/mars...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #function #return #returnvalue

#avk47