how do i write to a txt file in python code example
Example 1: open text file in python
f=open("Diabetes.txt",'r')
f.read()
Example 2: how to make a text file in python
f= open("guru99.txt","w+")
f=open("Diabetes.txt",'r')
f.read()
f= open("guru99.txt","w+")