def getMissval(inped=''):
 commonmissvals = {'N': 'N', '0': '0', 'n': 'n', '9': '9', '-': '-', '.': '.'}
 try:
  f = open(inped, 'r')
 except:
  return None
 missval = None
 while (missval is None):
  try:
   l = f.readline()
  except:
   break
  ll = l.split()[6:]
  for c in ll:
   if commonmissvals.get(c, None):
    missval = c
    f.close()
    return missval
 if (not missval):
  missval = 'N'
 f.close()
 return missval

def getMissval ( inped = '' ) : commonmissvals = { 'N' : 'N' , '0' : '0' , 'n' : 'n' , '9' : '9' , '-' : '-' , '.' : '.' } try : f = open ( inped , 'r' ) except : return None missval = None while ( missval is None ) : try : l = f . readline ( ) except : break ll = l . split ( ) [ 6 : ] for c in ll : if commonmissvals . get ( c , None ) : missval = c f . close ( ) return missval if ( not missval ) : missval = 'N' f . close ( ) return missval
read some lines .