Q1
Why do we use the `os` module?
💬Answer
The os module provides standard interfaces to interact with the underlying host OS. It is used for listing directory contents, checking file paths, executing system operations, and loading environment variables.
import os
print(os.getcwd()) # Get current working directory
Related Python Questions
View All PythonQuestions →
Created by
Apurv Gujjar
DevOps & Cloud Engineer
Specialized in:DevOpsAWSGCPKubernetesTerraformDocker
View Portfolio