Working With Files in Python Quiz
Interactive Quiz ⋅ 12 Questions
By Joseph Peart
In this quiz, you’ll test your understanding of Working With Files in Python.
By working through this quiz, you’ll revisit key techniques for handling files and directories in Python. You’ll practice safely opening files, iterating over directories, and filtering entries to select only files or subdirectories.
You’ll also explore creating directories and managing files and directories, including deleting, copying, and renaming them.
The quiz contains 12 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!
Related Resources
Course
Practical Recipes for Working With Files in Python
In this course, you'll learn how you can work with files in Python by using built-in modules to perform practical tasks that involve groups of files, like renaming them, moving them around, archiving them, and getting their metadata.
Tutorial
Working With Files in Python
In this tutorial, you'll learn how you can work with files in Python by using built-in modules to perform practical tasks that involve groups of files, like renaming them, moving them around, archiving them, and getting their metadata.