Bubblesort, Binary Search, and Pointers

Bubblesort, Binary Search, and Pointers#

Part 2: Pointers and Arrays#

  1. Consider the following Python code:

list1 = [10, 20, 30]
list2 = [40, 50, 60]
list2 = list1
list1[0] = 99
print(list2)

Without running the code, what do you expect the output of print(list2) to be and why?