CBSE Class 12 Computer Science
Question 39 of 120
Review of Python Basics — Question 13
Back to all questionsdlrowolleh
Reason — The code strl[::-1] reverses the string strl using slicing with a step of -1. This means it starts from the end of the string and moves towards the beginning, effectively reversing the order of characters in the string. Therefore, the output will be "dlrowolleh" which is the reverse of "helloworld".