Given the following assignment of a variable LS=[1,9,2,8,3,7,5,4] What will be…
PYQ EMRS TGT/PGT (ESSE) 2023
Given the following assignment of a variable
LS=[1,9,2,8,3,7,5,4]
What will be the output of the following ?
print(LS[::2]+LS[::-2])
- A.
[5, 3, 2, 1, 9, 8, 7, 4]
- B.
[1, 2, 3, 5, 4, 7, 8, 9]
- C.
[4, 7, 8, 9, 1, 2, 3, 5]
- D.
[9, 8, 7, 4, 5, 3, 2, 1]
Attempted by 224 students.
Sign up free to check your answer
Sign up freeLoading lesson…

