Write a Python script /app/stream stats.py that reads a possibly large file from standard input and computes…
Write a Python script /app/stream stats.py that reads a possibly large file from standard input and computes…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Goal : Process a sequence of records, one per line, where each line contains a comma-separated list of…
The task
**Goal**: Process a sequence of records, one per line, where each line contains a comma-separated list of fields. The last field is always a numeric score (float). Compute: 1. The top-K records by score, where K is given as a command-line argument. 2. The median score across all valid records. 3. The count of valid…
Part of ai-and/termgrade-environments.