Example & Tutorial understanding programming in easy ways.

What is call by Reference in Python ?

In call by reference, we pass the object reference  instead passing the value.


Example :

def f(a):

    a[1]=10

    print(a)

l=[1,2,3,4]

f(l)

print(l) // it will print [1,10,3,4]

Read More →