input: from typing import List
  
  def version_control_system(lines: List[str], command: str) -> bool:
      """ Implement a basic version control system in Python that keeps track of changes in the code.
      Given a list of lines of code and a command ('commit' or 'restore'), the function should perform the appropriate action.
      On 'commit', the current state of the lines of code is saved and a log entry is made.
      On 'restore', the code is restored to the state recorded in the last commit.
      The function returns True if the operation is successful, and False otherwise.
      Example:
      >>> version_control_system(['print("Hello, World!")'], 'commit')
      True
      >>> version_control_system(['print("Hello, World!")', '# This is a comment'], 'restore')
      True
      """
output:     if command == 'commit':
          version_control_system.last_commit = lines[:]
          return True
      elif command == 'restore':
          if hasattr(version_control_system, 'last_commit'):
              lines[:] = version_control_system.last_commit
              return True
          else:
              return False
      else:
          return False