Multiple choice technology programming languages

a=['a','b'] x=[a,'y']

  1. x[0][0]

  2. Syntax error at line 1

  3. Syntax error at line 2

  4. runtime error

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The code initializes a list a and nests it inside list x. To access the first element of a through x, we use x[0] to get a, and then index 0 of that nested list, yielding x[0][0]. Since there are no syntax or runtime errors, the other options are incorrect.