def get_numeric(val):
 try:
  return float(val)
 except:
  pass
 return val

def get_numeric ( val ) : try : return float ( val ) except : pass return val
try to return the numeric value of the string .