Q. What will the output be?
Code:print('Python'[::-1])
β
Correct Answer: (A)
nohtyP
Explanation: The slice `[::-1]` reverses the string.
print('Python'[::-1])