input: Write a function to edit the given Python code to be more efficient. The initial code reads as follows:
  
  
  data = [1, 2, 3, 4]
  result = []
  for x in data:
   if x > 2:
   result.append(x)
  
  
  Modify this code using list comprehension to achieve the same result.
  
  assert more_efficient([1, 2, 3, 4]) == [3, 4]
  assert more_efficient([1, 2, 2, 4]) == [4]
  assert more_efficient([1, 1, 1, 1]) == []
  assert more_efficient([]) == []
  assert more_efficient([3, 4, 5, 6]) == [3, 4, 5, 6]
output: def more_efficient(data):
      return [x for x in data if x > 2]