linux check if python is installed code example Example: python version command import sys print(sys.version)