get python versions code example Example: how to check python version python --version #in command line python #or by enterng interactiv mode