home ~ projects ~ socials

Get The Running Version Of Python From Inside A Script

import sys
print(sys.version)
Output:
3.10.6 (main, Aug 30 2022, 04:58:14) [Clang 13.1.6 (clang-1316.0.21.2.5)]
-- end of line --