def slug_is_numerical(slug):
 try:
  float(slug)
 except ValueError:
  return False
 return True

def slug_is_numerical ( slug ) : try : float ( slug ) except ValueError : return False return True
returns whether the slug can be interpreted as a number .