def is_float(input_string):
 try:
  float(input_string)
  return True
 except ValueError:
  return False

def is_float ( input_string ) : try : float ( input_string ) return True except ValueError : return False
a check that tests that a given value is a float .