sys.getwindowsversion
getwindowsversion( )
Return a tuple containing five components, describing the Windows version currently running. The elements are major, minor, build, platform, and text. text contains a string while all other values are integers.
platform may be one of the following values:
Constant Platform
0 (VER_PLATFORM_WIN32s) Win32s on Windows 3.1
1 (VER_PLATFORM_WIN32_WINDOWS) Windows 95/98/ME
2 (VER_PLATFORM_WIN32_NT) Windows NT/2000/XP
3 (VER_PLATFORM_WIN32_CE) Windows CE
This function wraps the Win32 GetVersionEx() function; see the Microsoft documentation for more information about these fields.
Availability: Windows. New in version 2.3.