Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- size = int(input())
- matrix = []
- location = []
- for i in range(size):
- matrix.append(input().split())
- symbol = input()
- for row in range(size):
- for col in range(size):
- if matrix[row][col] == symbol:
- location = [row, col]
- print(row, col)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement