Q. What will this code output?
Code:print('Hello'[::-1])
β
Correct Answer: (B)
olleH
Explanation: The slice with step -1 reverses the string.
print('Hello'[::-1])