how to get python versiomn code example Example 1: how to check python version python --version Example 2: python version python ––version