Home »
Python »
Python List MCQs
What will be the result of the above statement? | List Que. 7
7. What will be the result of the above statement?
L1= ["ram", 'hello', 1,2,3, 'hello world']
print (L1)
- ram, hello, 1, 2, 3, hello world
- ['ram', 'hello', 1, 2, 3, 'hello world']
- ERROR
Answer: B) ['ram', 'hello', 1, 2, 3, 'hello world']
Explanation:
The above code prints the list. Here is the output:
['ram', 'hello', 1, 2, 3, 'hello world']