I have a global variable called "result" and trying to change this value by calling a function .
import sys
def increment_result(a):
for i in range(0,3):
a += 1
result = 0
increment_result(result)
print(result)
But the result value is zero but expecting the result value to be 3.How can I change this global variable by using Pass by Reference in Python.