 Hi everyone, in this tutorial I'm gonna be showing you how to check the operating system in Python. Sometimes we need to execute platform-specific functions, so it's very useful to detect the platform on which our script is running. To check the operating system, first we need to import sys module, so I'm gonna type import sys and then we can use sys.platform to find out the current platform. I'm gonna press enter and as you can see our current platform is Windows. Often when we want to test for a specific system version, it's recommended to use the following code. If our system platform, for example, starts with Win, then we're gonna write here Windows-specific code and also if our platform is Linux, we're gonna type Linux-specific code here. That's all in this tutorial. Don't forget to subscribe to our channel. See you in the next tutorial. Happy coding!