logo CodeStepByStep logo

relative_paths

Language/Type: Python file input

Answer the following questions about a program located on a Windows machine in the folder C:\Users\yana\Documents\programs :

a. What are the legal ways you can refer to the file C:\Users\yana\Documents\programs\numbers.dat?
(order shuffled)
b. What are the legal ways you can refer to the file C:\Users\yana\Documents\programs\data\homework6\input.dat?
(order shuffled)
c. What are the legal ways you can refer to the file C:\Users\yana\Documents\homework\data.txt?
(order shuffled)

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.