Files in Python

f = open("test.txt",'w')

here we open test.txt in write mode.

pwd - Shows present Working directory:

'/home/jovyan/work'

ls - shows the list of files in directory

README.md  sample-code.ipynb  test.txt  Untitled.ipynb

w - truncate

a - append