def will_it_float(s):
 try:
  return float(s)
 except ValueError:
  return s

def will_it_float ( s ) : try : return float ( s ) except ValueError : return s
helper function that converts the input into a float if it is a number .