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)
  1. ram, hello, 1, 2, 3, hello world
  2. ['ram', 'hello', 1, 2, 3, 'hello world']
  3. 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']

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.