Write a Python script pathfinder.py that finds the shortest path through a grid from a start point to an end…
Write a Python script pathfinder.py that finds the shortest path through a grid from a start point to an end…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input: The script reads from stdin a JSON object with these keys: - grid : A 2D list (list of lists) of…
The task
**Input:** The script reads from stdin a JSON object with these keys: - `grid`: A 2D list (list of lists) of integers representing the cost of entering each cell. Dimensions: 1-1000 rows, 1-1000 columns. Values: 0-100, but can be negative (must be rejected). - `start`: [row, col] - 0-indexed. Guaranteed within bounds…
Part of ai-and/termgrade-environments.