Source Code:
(back to article)
def increment(n): n[0] += 1 x = [1] increment(x) print(x[0]) # Output: 2
Result:
Report an issue