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?

  1. A.

    [5, 3, 2, 1, 9, 8, 7, 4]

  2. B.

    [1, 2, 3, 5, 4, 7, 8, 9]

  3. C.

    [4, 7, 8, 9, 4, 7, 8, 9]

  4. D.

    [9, 8, 7, 4, 5, 3, 2, 1]

Attempted by 2218 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rssb Senior Computer Instructor

Loading lesson…