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