Drop links or images here to add them to the editor.

In a make task you write the program yourself, from an empty editor.

A game map is stored as a 2D array. Most squares are empty, marked "E", but one square contains the treasure, marked "T".

game_map = [["E", "E", "E"], ["E", "T", "E"], ["E", "E", "E"]]

Your task

Start your program with the game_map line exactly as it is above. Then write code that:

The row and the column in the message have to come from the two loop counters, not be typed in by hand. Nothing is printed for the empty squares.

The tests also check your code: a program that does not have a for loop inside a for loop does not pass.

The output

One line, where ROW and COLUMN are the indices of the square that holds the treasure:

Treasure found at row ROW, column COLUMN

Example

Output:

Treasure found at row 1, column 1
Help! My code doesn't work!

Make sure that you check for the following things:

  • The inner loop is indented under the outer loop, and the if is indented under the inner loop.
  • The item is picked out with the row first: game_map[row][column].
  • "T" is a capital letter, inside speech marks.
  • Both counters are wrapped in str() before they are joined onto the text with a +.
  • The comma and the spaces in the message are part of the text.