input: Write a python function to filter values from a list based on a given condition.
  assert filter_values([1, 2, 3, 4, 5, 6], "x % 2 == 0") == [2, 4, 6]
  assert filter_values([10, 15, 20, 25, 30], "x > 20") == [25, 30]
  assert filter_values([5, 10, 15, 20, 25], "x < 15") == [5, 10]
output: def filter_values(lst, condition):
      return [x for x in lst if eval(condition)]