how to write a .txt file with python code example
Example: python open and reacd file
with open('yourfile.txt','r') as f:
lines = f.readlines()
f.close()
with open('yourfile.txt','r') as f:
lines = f.readlines()
f.close()