input: Write a python function to filter numeric values from a list.
  assert filter_numeric([4, 2, 1, 15.6, 'p', 'y', 5.8]) == [4, 2, 1, 15.6, 5.8]
  assert filter_numeric([10, 'a', 20, 'b', 30.5, 'c']) == [10, 20, 30.5]
  assert filter_numeric(['x', 'y', 'z']) == []
  assert filter_numeric([1, 2, 3, '4', '5', 6.0]) == [1, 2, 3, 6.0]
output: def filter_numeric(lst):
      return [x for x in lst if isinstance(x, (int, float))]