Mega Code Archive
Categories
/
Python Tutorial
/
Function
Simulating Output Parameters
def multiple(x, y): x = 2 y = [3, 4] return x, y X = 1 L = [1, 2] X, L = multiple(X, L) print X, L