Answers for "checking os version in python"

1

check os python

>>> import platform
>>> platform.system()
'Windows'
>>> platform.release()
'XP'
>>> platform.version()
'5.1.2600'
Posted by: Guest on March-16-2021

Python Answers by Framework

Browse Popular Code Answers by Language