Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Append to file

  • append
filename = 'data.txt'

with open(filename, 'a') as out:
    out.write('append more text\n')