as python variables are always referencesfunction can modify the objects that arguments refer to def switch(mylist)tmp mylist[- mylist[- mylist[ mylist[ tmp [ , , , , switch( [ side effects can be wanted or unwanted