How to check all installed python versiona code example Example: python version command import sys print(sys.version)