(value)
Checks if the supplied value can be converted to a scalar.
Checks if the supplied value can be converted to a scalar.
Checks if the supplied value can be converted to a scalar .
def is_scalar(value):
  """Checks if the supplied value can be converted to a scalar."""
  try:
    float(value)
  except (TypeError, ValueError):
    return False
  else:
    return True
def is_scalar ( value ) : try : float ( value ) except ( TypeError , ValueError ) : return False else : return True