Sign up Free. Don't forget to check out our challenges, lessons, solve and learn series and more ...

Code Snippet

#Example of passing parameters

def values_change ( mylist ):
   "This changes a passed list into this function"
   print ("Values inside the function: ", mylist)

# Now you can call values_change function
mylist = [10,20,30];
values_change( mylist );
print( "Values outside the function: ", mylist)

Try it yourself