hi and thank por your help

var list1=["a","b","c"]
var list2=[]
list2=list1
list2.remove(1)
print(list1," ",lis2) -> [a, c] [a, c] #i remove in list2 but affect too list1 ,why ?

o how can get this:
[a, b, c] [a, c] #i want get this , list1 3 items , and list2 2 items

thanks

    john list2=list1

    That makes list2 a reference to list1, not a copy of list1.

    This is one way of copying an Array:
    list2 = list1.duplicate()
    https://docs.godotengine.org/en/stable/classes/class_array.html#class-array-method-duplicate

    Here's another way:

    var list2: Array = []
    for a in list1:
         list2.append(a)