Asked By – Mark Harrison
What do I need to look at to see whether I’m on Windows or Unix, etc?
Now we will see solution for issue: How to identify on which OS Python is running on?
>>> import os >>> os.name 'posix' >>> import platform >>> platform.system() 'Linux' >>> platform.release() '2.6.22-15-generic'
The output of
platform.system() is as follows: