Let's suppose you want to make a clone of a list,
not an alias for it.
You want another variable that will have an equivalent lists,
a copy of the original list or a clone of the original list,
but you want the two lists to be independent.
Let's say we start with a list a,
that has the elements 81, 82, and 83.
We want to make a new variable b,
that has a clone or a copy of it.
We can do that using the slice operator, the slice operator,
always grabs some part of a list,
and makes a new list using those items that have been grabbed using the slice.
So, if we execute this in code,
then we can see what happens.
So, we created a list a,
we make a slice,
in this case our slice begins at the beginning of
the list and goes all the way to the end of the list.
So, we get all three items,
zero, one, and two,
and they are copied into a new list,
and so we get a new list,
so b is now not an alias for a,
b is referring to a list with equivalent contents, the same contents.
So, if we print a equal equals b, they are equivalent,
so that's true, but a is not b,
they're pointing to different lists.
Now, if I change b sub zero to be five,
unlike our previous example where b was an alias for a,
when b sub zero is set to five,
only b is going to be affected.
So, we see that it has a new value five,
but the 81 is still there for a zero.
So, when I print a, I'll get the original list,
b was originally an equivalent lists with the same contents,
a clone of a, they've become independent and
b gets mutated without having any effect on a.
There you have it, clonal list by using the slice operator,
if you don't say, either a beginning or an ending index,
you get the whole list and you get a clone or a copy of the list.