Question:medium

Consider the statements given below and then choose the correct output from the given options:
L = ['TIC', 'TAC']
print(L[::-1])

Show Hint

In Python, [::-1] reverses the list or string completely.
It does not reverse the individual elements unless specified.
Updated On: Jan 14, 2026
  • ['CIT', 'CAT']
  • ['TIC', 'TAC']
  • ['CAT', 'CIT']
  • ['TAC', 'TIC']
Show Solution

The Correct Option is D

Solution and Explanation

The list L is initialized as ['TIC', 'TAC'].
The slicing notation [::-1] performs a full reversal of the list.
Consequently, applying L[::-1] reverses the order of L's elements.
The initial element 'TIC' will occupy the final position,
and the element 'TAC' will occupy the initial position.
The resultant list is ['TAC', 'TIC'].
Options (A) and (C) incorrectly represent reversed strings, not a reversed list.
Therefore, option (D) is the correct selection.
Was this answer helpful?
0