I\'m trying to find minimum element in matrix row, but there are two conditions: 1) it must be > 0 2) and this point must be not visited(is_visited[k] is False) I\'
is_visited[k] is False
Just use and operation for concatenate tow if statement :
and
min(x for x in matr_sum[i] if x > 0 and if is_visited[k] is False and i!=k)