def checkFloat(s):
 try:
  float(s)
  return True
 except ValueError:
  return False

def checkFloat ( s ) : try : float ( s ) return True except ValueError : return False
check if input string is a float .