Home

Published

- 1 min read

how to know the version of python using cmd

img of how to know the version of python using cmd

The solution for this is noted below

how to know the version of python using cmd

Solution

   #checking using cmd
python --version
#using python script to get version
import os
os.system("python --version")

Try other methods by searching on the site. That is if this doesn’t work