from random import randint
A = [[1, 4, 5, -12],
[-5, 8, 9, 0],
[-6, 7, 11, 19]]
d = [0 for i in range(len(A))]
for i in range(len(A)):
for ii in A[i]:
if len(str(abs(ii))) == 2:
d[i] += 1
v = len(A) + 1
for i in range(len(d)):
if d[i] != 0 and d[i] < v:
v = i
if v != len(A) + 1:
print(A[v])
else:
print("None")
from random import randint
A = [[1, 4, 5, -12],
[-5, 8, 9, 0],
[-6, 7, 11, 19]]
d = [0 for i in range(len(A))]
for i in range(len(A)):
for ii in A[i]:
if len(str(abs(ii))) == 2:
d[i] += 1
v = len(A) + 1
for i in range(len(d)):
if d[i] != 0 and d[i] < v:
v = i
if v != len(A) + 1:
print(A[v])
else:
print("None")