input: Write a python function to check if a string represents a numeric value.
  assert is_numeric("123.45") == True
  assert is_numeric("abc") == False
  assert is_numeric("12e5") == True
output: def is_numeric(s):
      try:
          float(s)
          return True
      except ValueError:
          return False