Python - Standard Library Usage
Which Python module is commonly used to interact with the file system for tasks like checking if a file exists or creating directories?
os module provides functions to interact with the operating system, including file system operations.sys deals with system-specific parameters, math is for math functions, and random is for random number generation, so they are not used for file system tasks.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions