Computer Science
The relative path for a file always remains the same even after changing the directory.
Python File Handling
2 Likes
Answer
False
Reason — The relative paths are relative to current working directory. Hence, the relative path for a file does change based on the current working directory.
Answered By
3 Likes
Related Questions
The absolute paths are from the topmost level of the directory structure.
The relative paths are relative to the current working directory.
The types of operations that can be carried out on a file depend upon the file mode a file is opened in.
If no path is given with a file name in the file open(), then the file must exist in the current directory.