"The slice operator creates a new list and the assignment makes t refer to it, but none of that has any effect on the list that was passed as an argument".
But why it is so? Could you explain it to me? I just don't understand.
def bad_delete_head(t) :
t = t[1:]
letters = ['a', 'b', 'c']
bad_delete_head(letters)
print(letters)
Output: ['a', 'b', 'c']