Computer Science, asked by akshaybhardwaj987154, 3 months ago

Which of the following will give
output as [23,2,9,75] ?
If list1=[6,23,3,2,0,9,8,75)
print(list1/1:7:21)
print(list1(0:7:2])
print(list1[1:8:21)
print(list1[0:8:2])​

Answers

Answered by shrravan7
9

Answer:

print(list[1:8:2])

Explanation:

As the required output is list of odd place values of the list, list1 the syntax for to be passed to print it is ‘print(list1[1:8:2]).

Similar questions