how to get version information of python code example Example 1: how to check python version python --version Example 2: how to check python version python --version