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

Comments and Discussions!

Load comments ↻






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