#Call By Value
def cube(x):
x=x*x*x
return(x)
n=5
print "Cube of %d is"%n,cube(n)
#Call by reference
def interchange(a,b):
t=0
t=a
a=b
b=t
return b,a
i=5
j=10
print "i and j values before interchange:", i, j
i=10
j=5
interchange(i,j)
#Result
print "i and j values after interchange:",i,j
print "i and j avalues after interchange in the function : %d %d \n"%interchange(i,j)