HF RL Explorer

Task: Check Operating System in Python

Task: Check Operating System in Python: a task in Terminal-Lego-15k (Harbor dataset). Create a Python script that detects the operating system on which it is running and stores the result in a variable (not just printing to console via system commands). The script should be able to identify…

The task

Create a Python script that detects the operating system on which it is running and stores the result in a variable (not just printing to console via system commands). The script should be able to identify whether the system is Linux, Windows, or macOS.

Part of PrimeIntellect/Terminal-Lego-15k.