Here's a task to view input and output, similar to online coding platforms:
{
"label": "Run Python with i/o",
"type": "shell",
"command": "cls & echo Input: & python a.py > temp.txt & echo. & echo Output: & type temp.txt & del temp.txt",
"presentation": {
"showReuseMessage": false
}
}
Result: