def make_string(seq):
 string = ''
 for c in seq:
  try:
   if ((32 <= c) and (c < 256)):
    string += chr(c)
  except TypeError:
   pass
 if (not string):
  return str(seq)
 return string

def make_string ( seq ) : string = '' for c in seq : try : if ( ( 32 <= c ) and ( c < 256 ) ) : string += chr ( c ) except TypeError : pass if ( not string ) : return str ( seq ) return string
dont throw an exception when given an out of range character .