Computer Science, asked by kiranrawat976131, 7 months ago

Given the lists L=[1,3,6,82,5,7,11,92] , write the output of print(L[2:5])​

Answers

Answered by Oreki
5

Output:

[6, 82, 5]

Explanation:

As L[2:5] means get elements from index 2 to 5 - 1 from list L.

Answered by duragpalsingh
0

Question:

Given the lists L=[1,3,6,82,5,7,11,92] , write the output of print(L[2:5])​

Solution:

We know,

Any L[x:y] prints the elements from index x to y-1.

here, x = 2 and, y = 5

Therefore, The output of print(L[2:5]) will be: [6,82 ,5]

Similar questions