Dictionary as Return Value

Functions may return multiple values using a dictionary.

def function(x, y):
    ...
    return {'x': x, 'y': y}

results matching ""

    No results matching ""