def _printOneTrainingVector(x):
 print ''.join((('1' if (k != 0) else '.') for k in x))

def _printOneTrainingVector ( x ) : print '' . join ( ( ( '1' if ( k != 0 ) else '.' ) for k in x ) )
print a single vector succinctly .