my_list = [1, 2, 3, [4, 5, 6]]
another_list = list(my_list)
Given the above code, answer the following questions and explain your answers:
- Are the lists assigned to
my_listandanother_listequal? - Are the lists assigned to
my_listandanother_listthe same object? - Are the nested lists at index 3 of
my_listandanother_listequal? - Are the nested lists at index 3 of
my_listandanother_listthe same object?
Don't write any code for this exercise.