import sys # print Python version and exit if older than accepted print('Python version: ' + sys.version) if sys.hexversion < 0x02060000: sys.exit('Python versions older than 2.6 are not supported.') |
Error handling >
Error handling >
Check Python version
|