‹‹

Getting the Python version at runtime

Oct 24, 2021

Read time: 1 minute

Again, might come in handy while debugging.

import sys

print(sys.version)

Output:

3.9.7 (default, Aug 31 2021, 13:28:12) 
[GCC 11.1.0]
🏷