import sys
x = ("What shall we do with the drunken sailor?")
y = (len(x)-1)
print (y)
while y > 0:
y = y - 1
sys.stdout.write(x[y])
print("\n")
Result:
40
rolias neknurd eht htiw od ew llahs tahW
You can open the LibreOffice window completely by pressing the CTRL+Shift+J keys together.