Quiz: Python’s pathlib Module: Taming the File System
Interactive Quiz ⋅ 9 QuestionsBy Joseph Peart Share In this quiz, you’ll revisit how to tame the file system with Python’s pathlib module. You’ll reinforce core pathlib concepts, including checking whether a path points to a file and instantiating Path objects. You’ll revisit joining paths with the / operator and .joinpath(), iterating over directory contents with .iterdir(), and renaming files on disk with .replace(). You’ll also check your knowledge of common file operations such as creating empty files with .touch(), […]
Read more