writing text to a file using with in python code example Example: python create file f= open("guru99.txt","w+")