Q. What is the output of [1, 2] + [3, 4]?

A
[1, 2, 3, 4]
B
[1, 2][3, 4]
C
[4, 6]
D
Error
Solution:

The + operator concatenates lists, resulting in [1, 2, 3, 4].

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!