Q. What is the output of the following code?
Code:
print('Python'[-1])
β
Correct Answer: (B)
n
Explanation: Negative indexing accesses elements from the end. `-1` means the last character.