how to open a file and read its contents in python code example
Example 1: open text file in python
f=open("Diabetes.txt",'r')
f.read()
Example 2: python create file
f= open("guru99.txt","w+")
f=open("Diabetes.txt",'r')
f.read()
f= open("guru99.txt","w+")