12 lines
650 B
Plaintext
12 lines
650 B
Plaintext
1. What is a relative path relative to?
|
|
2. What does an absolute path start with?
|
|
3. What does Path('C:/Users') / 'Al' evaluate to on Windows?
|
|
4. What does 'C:/Users' / 'Al' evaluate to on Windows?
|
|
5. What do the os.getcwd() and os.chdir() functions do?
|
|
6. What are the . and .. folders?
|
|
7. In C:\bacon\eggs\spam.txt, which part is the dir name, and which part is the base name?
|
|
8. What are the three “mode” arguments that can be passed to the open() function?
|
|
9. What happens if an existing file is opened in write mode?
|
|
10. What is the difference between the read() and readlines() methods?
|
|
11. What data structure does a shelf value resemble?
|