Advertisement
pavlinski78

Untitled

May 31st, 2020
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. size = int(input())
  2. matrix = []
  3. location = []
  4. for i in range(size):
  5.     matrix.append(input().split())
  6. symbol = input()
  7. for row in range(size):
  8.  
  9.     for col in range(size):
  10.         if matrix[row][col] == symbol:
  11.             location = [row, col]
  12. print(row, col)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement