What is the output of the following program :
(A) dlroW olleH
(B) Hello Worl
Explanation: [::] depicts extended slicing in Python and [::-1] returns the reverse of the string.
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.