sscasc@tumkur syntax def function_name(arg*var)code block return herearg means normal argument which is passed to the function the *var refers to the variable length argument exampledef variable_argumentarg*vari)print ("out-put is",argfor var in variprint (varvariable_argument( variable_argument("hari", , , , , outputout-put is out-put is hari pass by reference versus pass by value in pass by reference values to the argument of the function are passed as referencethat isthe address of the variable is passed and then the operation is done on the value stored at these addresses pass by value means that the value is directly passed as the value to the argument of the function in this casethe operation is done on the value and then the value is stored at the address in python argumentsthe values are passed by reference during the function callthe called function uses the value stored at the address passed to it and any changes to it also affect the source variableexamplecall by reference def pass_ref(list ):#call by ref list extend([ , ]print ("list inside the function",list list [ , , print ("list before pass"list pass_ref(list print ("list outside the function"list outputlist before pass [ list inside the function[ list outside the function [ sp_python programming