Exam4Training

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

Exit mobile version