how to check if python is installed in terminal code example Example: how to check python version python --version