Python List Assignment Explained: Why Does b[1] Print 20? ๐ค #python #pythonquiz
Description: โ
Correct Answer: A) 20
Explanation:
When we write `b = a`, both variables refer to the original list `[10, 20, 30]`.
Later, when `a = [40, 50]` executes, Python makes `a` refer to a new list. It does not change the original list referenced by `b` ...ย Close description
Explanation:
When we write `b = a`, both variables refer to the original list `[10, 20, 30]`.
Later, when `a = [40, 50]` executes, Python makes `a` refer to a new list. It does not change the original list referenced by `b` ...ย Close description
![Python List Assignment Explained: Why Does b[1] Print 20? ๐ค #python #pythonquiz](https://i.ytimg.com/vi/6EgoTgMpQoI/mqdefault.jpg)



