Home »
Python »
Python List MCQs
What will be the output of the following command?
11. What will be the output of the following command
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: B) "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 outcome of the above command.