If you are writing a script and need to ensure it's running on a compatible version, you can check it using Python’s internal modules like sys or platform .

Top