Question: Which method can you use to check if a given absolute path is an existing file. > > > os . path.exists ( os .

Which method can you use to check if a given absolute path is an existing file.
>>> os.path.exists(os.getcwd()+ 'assn')
False
Group of answer choices
A. The 'assn' directory does not exist in the operating system's 'root' directory.
B. The 'assn' directory does not exist in the presently working directory.
C. The 'assn' directory does not exist in the user's home directory.
D. The 'assn' directory does not exist in a directory named 'os.getcwd()'.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!