The os and sys Modules for System Operations in Python


Interact with the operating system and retrieve system-specific parameters.

Source Code

import os
import sys
print(os.getcwd())  # Current working directory
print(sys.platform)  # Platform identifier
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments