input: from typing import List
  
  def basic_version_control(lines: List[str]) -> List[str]:
      """Implement a basic version control system in Python that keeps track of changes in the code.
      The system should allow for committing and restoring the state of the code.
      >>> basic_version_control(['print("Hello")', 'print("World")'])
      ['1: [\'print("Hello")\', \'print("World")\']\n', 'State restored to: 1']
      >>> basic_version_control(['print("Python")', 'print("Version Control")'])
      ['1: [\'print("Python")\', \'print("Version Control")\']\n', 'State restored to: 1']
      """
output:     versions = []
      current_version = 1
      versions.append(lines)
      output = []
      output.append(f"{current_version}: {versions[-1]}\n")
      output.append(f"State restored to: {current_version}")
      return output