how to check which python version is used code example Example 1: how to check python version python --version Example 2: python version python ––version