import sys python_version = sys.version.split()[0] print(f"Python version: {python_varsion}" ''' Output: Python version: 3.12.0 '''