Question: In Python, write a script to explore the above array for a treasure. The values in the array are clues. Each cell contains an integer
In Python, write a script to explore the above array for a treasure. The values in the array are clues. Each cell contains an integer between and ; for each value the ten's digit represents the row number and the unit's digit represents the column number of the cell containing the next clue. Starting in the upper left corner at use the clues to guide your search of the array. The first three steps are The treasure is a cell whose value is the same as its coordinates. Your program must first read in the treasure map data into a by array. Your program should output the cells it visits during its search, and a message indicating where you found the treasure.
This is the order of the array in a scheme from left to right.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
