Examveda

What will be the output of the following Python code?
lst=[[1,2],[3,4]]
print(sum(lst,[]))

A. [[3],[7]]

B. [1,2,3,4]

C. Error

D. [10]

Answer: Option B


This Question Belongs to Python Program >> Lists In Python

Join The Discussion

Related Questions on Lists in Python