vrijdag 22 januari 2016

Print a line in reversal

# print the text in reversal.
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

Enlarging Libreoffice window completely with command

 You can open the LibreOffice window completely by pressing the CTRL+Shift+J keys together.