def makeNumeric(s):
 if checkInt(s):
  return int(s)
 elif checkFloat(s):
  return float(s)
 else:
  return s

def makeNumeric ( s ) : if checkInt ( s ) : return int ( s ) elif checkFloat ( s ) : return float ( s ) else : return s
convert string to int or float if numeric .