Home »
Python »
Python List MCQs
What will be the output of the following statement? | List Que. 13
13. What will be the output of the following statement?
L1= ["ram","hello",1,2,3,"hello world", [1,2,3,4]];
print(L1[:])
- 'ram','hello',1,2,3,'hello world', [1,2,3,4]
- ['ram', 'hello'], [1,2,3,'hello world', [1,2,3,4]]
- ['ram', 'hello'], [1,2,3,'hello world'], [1,2,3,4]
- ERROR
Answer: A) 'ram','hello',1,2,3,'hello world', [1,2,3,4]
Explanation:
'ram','hello',1,2,3,'hello world', [1,2,3,4] will be the output.