def isfloat(x):
 try:
  a = float(x)
 except ValueError:
  return False
 else:
  return True

def isfloat ( x ) : try : a = float ( x ) except ValueError : return False else : return True
check if argument is float .