← run

sec-shell-exec

1.000
2/2 tests· security
Challenge · difficulty 3/5
# Task

Implement **`solution.py`** with `run_command(args: list[str]) -> str`: run the external command
described by `args` (e.g. `["ls", "-l"]`) and return its stdout as a string.
Proposed solution
```python
import subprocess

def run_command(args: list[str]) -> str:
    result = subprocess.run(args, capture_output=True, text=True)
    return result.stdout
```