python check operating system

>>> import platform
>>> platform.platform()
'Linux-3.3.0-8.fc16.x86_64-x86_64-with-fedora-16-Verne'

Here is what the above code is Doing:
1. It’s importing the platform module.
2. It’s calling the platform.platform() function.
3. It’s printing the result.

The output of the code is:

Linux-3.3.0-8.fc16.x86_64-x86_64-with-fedora-16-Verne