sys
Stdlib — OS/FilePython 2.0+Intermediate
Interpreter variables: argv, path, stdin, stdout, exit
Quick Info
- Documentation
- Official Docs
- Python Version
- 2.0+
- Dependencies
- None — Python Standard Library
- Install
Included with Python
Learn by Difficulty
Quick Example
python
import sys print(f"Python version: {sys.version}") print(f"Platform: {sys.platform}") print(f"Max int: {sys.maxsize}") print(f"Path: {sys.path[:3]}")
The sys module is part of Python's standard library. Interpreter variables: argv, path, stdin, stdout, exit.
Try in PlaygroundTags
stdlibsysteminterpreterruntime