What is the expected behavior of the following code?

What is the expected behavior of the following code?

A . it outputs list assignment index out of range
B . the code is erroneous and it will not execute
C . it outputs <class ‘IndexError’>
D . it outputs error

Answer: A

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments