There is something about the way python assigns a value to a variable that I'm not fully comprehending. Why is it that this:
charlie = ['d', 'o', 'p', 'e']
beth = charlie
beth[0] = charlie[1]
print charlie
gives me this:
['o', 'o', 'p', 'e']
As far as I understand the assignment operator only works one way, thus this code should only change the first index of beth, not charlie. So what gives?