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