Python: Return Multiple Values from a Function • datagy
datagy.io › python-return-multiple-valuesOct 29, 2021 · Let’s take a look at how a function in Python is designed and how to return one value and how to return two values. # Defining Simple Functions to Return One and Two Values def return_one(): return 'x' def return_two(): return 'x', 'y' In the example above, we have defined two different functions, return_one() and return_two(). The former of these returns only a single value.