Consider the following assignment for a List L. L = [10, 20, 30, 40, 50, 60]…

PYQ EMRS TGT/PGT (ESSE) 2023

Consider the following assignment for a List L. L = [10, 20, 30, 40, 50, 60] Which print statement option will display the content in the following way? [60, 10, 20, 30, 40, 50]

  1. A.

    print(L[-1] + L[1:])

  2. B.

    print([L[-1]] + L[:len(L)-1])

  3. C.

    print(L[len(L)-1] + L[1:len(L)])

  4. D.

    print(L[-1], L[1:])

Attempted by 2248 students.

Sign up free to check your answer

Sign up free

Explore the full course: Emrs Cs Tier 2

Loading lesson…