wirte in text python code example
Example 1: open text file in python
f=open("Diabetes.txt",'r')
f.read()
Example 2: python output to text file
$ python my_program.py > output.txt
f=open("Diabetes.txt",'r')
f.read()
$ python my_program.py > output.txt