def fun(i, j, ls, tup): if i==m-1 and j==n-1: for x in ls: print("(%s,%s)"%(x[0],x[1])) return if (i, j - 1) != tup and j - 1 >= 0 and dp[i][j - 1] == "0": l = ls[:] l.append((i, j - 1)) fun(i, j - 1, l, (i, j)) i...