I am making a python program which would act as windows cmd, but I need a code which will display Windows's version. [Highlighted one]
How to make it?
I am making a python program which would act as windows cmd, but I need a code which will display Windows's version. [Highlighted one]
How to make it?
import sys
ver = sys.getwindowsversion()
print("{}.{}.{}".format(ver.major, ver.minor, ver.build))
Output :
10.0.18362
You can try this:
import os
os.system('ver')