[::-1] स्लाइसिंग ऑपरेशन कोड print("Hello world"[::-1]) में क्या करता है?
What does the [::-1] slicing operation do in the code print("Hello world"[::-1])?
A
Reverses the string
B
Converts the string to uppercase
C
Removes whitespace from the string
D
Splits the string into a list
Explanation
Correct Answer: A) Reverses the string