input: from typing import List
  
  
  def create_doubly_linked_list(operations: List[str], data: List[int]) -> List[int]:
      """ Create a doubly linked list and perform operations on it. The operations can be either 
      "append" or "reverse". For each "append" operation, a number from the data list is added 
      to the end of the list. For the "reverse" operation, the list is reversed. Return the list 
      after all operations are performed.
      >>> create_doubly_linked_list(["append", "append", "reverse", "append"], [1, 2, 3])
      [3, 2, 1]
      >>> create_doubly_linked_list(["append", "append", "append"], [4, 5, 6])
      [4, 5, 6]
      """
output:     result = []
      for op, num in zip(operations, data):
          if op == "append":
              result.append(num)
          elif op == "reverse":
              result.reverse()
      return result