1# Runtime: 121 ms (Top 76.1%) | Memory: 19.55 MB (Top 13.9%)234class Solution(object):5def searchMatrix(self, matrix, target):6"""7:type matrix: List[List[int]]8:type target: int9:rtype: bool10"""11found = False12for X in matrix:13for M in X:14if M == target:15found = True16return found