input: 
  def VersionControl(lines):
      """
      Implement a basic version control system in Python that keeps track of changes in the code.
      The function should allow committing changes and restoring to a previous version.
      >>> VersionControl(['print("Hello World")']).commit()
      [1, ['print("Hello World")']]
      >>> VersionControl(['print("Hello World")']).restore()
      ['print("Hello World")']
      """
      pass
  
output:     
      class VersionControl:
          def __init__(self, lines):
              self.lines = lines
              self.history = []
              self.version = 0
  
          def commit(self):
              self.history.append(self.lines)
              self.version += 1
              return [self.version, self.lines]
  
          def restore(self):
              if self.history:
                  self.lines = self.history.pop()
              return self.lines
  