2.If Python file and text file are in different folders :
path → entire path of the fileName
workspaces
└── codespaces-blank
├── PYTHON LIB
│ └── https://t.co/TgbPVMV0V4 # FILE
└── DUMMY LIB
└── textFile.txt
TAG : #PYTHON
WAYS TO NAVIGATE FILE PATH IN FILE HANDLING :
1. If Python file and text file are in the same folder:
Path → directly use the file name.
PYTHON LIB #folder
├── textFile.txt #textFile
└── https://t.co/TgbPVMV0V4 #pythonFile
TAG:#python