What is the expected behavior of the following code?
What is the expected behavior of the following code?
C
C: outputs list assignment index out of range. This is because my_list = [1, 2, 3] (# is positioned as 0,1,2) so having a [3] would need the list to me longer my_list=[1, 2, 3, 4]
list assignment index out of range
C. it outputs list assignment index out of range