List as argument to user-defined functions
List as an argument to user-defined functions When you pass a list to a function, the function gets a reference to the list. If the function modifies a list parameter, the caller sees the change. The following program demonstrates, how to pass a list as an argument to user-defined functions in python. def disp(l1): for […]