to read text file in python code example
Example 1: python open and reacd file
with open('yourfile.txt','r') as f:
lines = f.readlines()
f.close()
Example 2: open text file in python
f=open("Diabetes.txt",'r')
f.read()
with open('yourfile.txt','r') as f:
lines = f.readlines()
f.close()
f=open("Diabetes.txt",'r')
f.read()