input: Write a function to edit the given Python code to make it more efficient. The function should take a list of integers as input and return a list of integers that are greater than 2. If the input list is empty, the function should return an empty list.
  assert efficient_code([1, 2, 3, 4])==[3, 4]
  assert efficient_code([5, 6, 7])==[5, 6, 7]
  assert efficient_code([])==[]
  assert efficient_code([1, 2])==[]
output: def efficient_code(lst):
      return [x for x in lst if x > 2]