py -0 or py -0p
# new way to know about python version in your windows pc,follow the steps below
step-1:Open CMD
step-2:write py --version
Congratulations!Now you know the version of python in your PC.
python --versrion
print(sys.version_info)
# sys.version_info(major=3, minor=8, micro=3, releaselevel='final', serial=0)
import platform
print(platform.python_version())
import sys
print(sys.version)
Version Latest micro version Release date
3.4 3.4.10 2014-03-16
3.5 3.5.10 2015-09-13
3.6 3.6.13 2016-12-23
3.7 3.7.10 2018-06-27
type py in cmd