I am a little bit confused as I am trying to use very simple functions on lists.
My code is:
l = “C”
list_1 = [“A”, “B”]
list_2 = function_list(list_1)
and it returns
Can anyone explain why list_1 gets modified even tho the function is called on list_2 ?
What should be the code in order not to modify list_1 ?
Thanks for your responses.