check python version kali linux code example Example: check python version kali linux $ python2 --version