min len out of list python code example
Example: python return min length of list
a = [[1,0,1,2,1,1,1,3111111], [31,1,4,51,1,1,1], [1,1,6,7,8]]
print min(a, key=len)
# [1, 1, 6, 7, 8]
print len(min(a, key=len))
# 5
print min(map(len, a))
# 5
a = [[1,0,1,2,1,1,1,3111111], [31,1,4,51,1,1,1], [1,1,6,7,8]]
print min(a, key=len)
# [1, 1, 6, 7, 8]
print len(min(a, key=len))
# 5
print min(map(len, a))
# 5