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]
- A.
print(L[-1] + L[1:])
- B.
print([L[-1]] + L[:len(L)-1])
- C.
print(L[len(L)-1] + L[1:len(L)])
- D.
print(L[-1], L[1:])
Attempted by 2248 students.
Sign up free to check your answer
Sign up freeLoading lesson…

