ShriRam Changed status to publish August 21, 2023
# Function definition is here
def changeme( mylist ):
“This changes a passed list into this function”
mylist = [1,2,3,4] # This would assi new reference in mylist
print (“Values inside the function: “, mylist)
return
# Now you can call changeme function
mylist = [10,20,30]
changeme( mylist )
print (“Values outside the function: “, mylist)
ShriRam Changed status to publish August 21, 2023