Questions
As we conclude, here is a list of questions for you to test your knowledge regarding this chapter’s material. You will find the answers in the Assessments section of the Appendix:
- What is the main module that allows us to interact with the file system?
- What is the difference between using
subprocess.run()
andPopen()
and under what circumstances should each be used? - Which class from
concurrent.futures
module provides an interface to execute tasks asynchronously and allow us to recycle existing threads so that we can assign new tasks to them? - Which method from the threading module allows us to determine if the thread is still running or has already finished?
- Which method from the threading module allows us to get the current thread identifier?