The String to Reverse txt ="Hello World"[::-1] print(txt) Create a slice that starts at the end of the string, and moves backwards. In this particular example, the slice statement[::-1]means start at the end of the string and end at position 0, move with the step-1,negativeone...