Assume the following Python code has already executed.
import os
cwd = os.getcwd()
Which answer is most likely output from the following Python statement?
os.path.join(cwd, 'Documents/file.txt')
Select one:
a. ['Music', 'Pictures', 'Desktop', 'Library', 'Documents', 'Downloads']
b. False
c. True
d. /Users/me
e. /Users/me/Documents/file.txt

Respuesta :

e. /Users/me/Documents/file.txt

The Python statement is an illustration of file manipulations

The output from the Python statement is: (e) /Users/me/Documents/file.txt

From the given statement, the first line imports the Python os module.

While the second line gets the current working file path.

So, the statement os.path.join(cwd, 'Documents/file.txt') means that:

The current working file path is Documents/file.txt

Hence, the output from the Python statement is: (e) /Users/me/Documents/file.txt

Read more about file manipulations at:

https://brainly.com/question/19386916