def flipCol(argdata, n):
 argarr = [list(x) for x in argdata]
 for row in range(len(argarr)):
  for col in range(len(argarr[0])):
   if (col == n):
    argarr[row][col] = ('+' if (argarr[row][col] == '-') else '-')
 return [''.join(x) for x in argarr]

def flipCol ( argdata , n ) : argarr = [ list ( x ) for x in argdata ] for row in range ( len ( argarr ) ) : for col in range ( len ( argarr [ 0 ] ) ) : if ( col == n ) : argarr [ row ] [ col ] = ( '+' if ( argarr [ row ] [ col ] == '-' ) else '-' ) return [ '' . join ( x ) for x in argarr ]
flips all bits in a given column .