> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/function/function.return_tuple.md).

# Function.return\_tuple()

`return_tuple() → Tuple[Type, List[`[`Value`](/glider-ide/api/value.md) `|`[`NoneObject`](/glider-ide/api/internal/noneobject.md)`]]`

Returns the function's `return (type, value)` tuples.

## Query Example

```python
from glider import *

def query():
  # Fetch a list of functions
  functions = Functions().exec(1,4)

  for func in functions:
    # Retrieve the return instructions of the first function
    return_tuple = func.return_tuple()
    print(f"Type is - {return_tuple[0]}")
    for value in return_tuple[1]:
      print(value.expression)

  return functions
```

## Example Output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FPyaotmS1yXXomt7cfBtX%2FScreenshot%202025-08-19%20at%202.57.57%E2%80%AFPM.png?alt=media&amp;token=1c657780-0401-4ef1-875d-9f09814f3f9b" alt=""><figcaption></figcaption></figure>
