KnowledgeBoat Logo

Computer Science

If no path is given with a file name in the file open(), then the file must exist in the current directory.

Python File Handling

1 Like

Answer

True

Reason — If no path is given with a file name in the open() function in Python, then the file is assumed to be located in the current working directory. If the file is not found in the current working directory, Python will raise a 'FileNotFoundError' exception.

Answered By

2 Likes


Related Questions