python create and write text file line by line code example Example: python create file f= open("guru99.txt","w+")