vrijdag 22 januari 2016

Counting the number of characters in a string

# Counting the total number of the letter "a" in a string.
 
x = ("What shall we do with the drunken sailor?")

i = "a"
print (x.count(i, 0, 40))

Result:
3

Enlarging Libreoffice window completely with command

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