# -*- coding: utf-8 -*- f = open('test.txt', 'w') f.write('Python Sample File Operation') f.close()