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

