input: Write a function to convert a list of book information into a dictionary format. Each book is represented by a list containing the title, author, and number of pages. The function should return a list of dictionaries where each dictionary contains the details of a single book. 
  def book_list_to_dict(book_info_list):
      book_list = []
      for book in book_info_list:
          book_dict = {'title': book[0], 'author': book[1], 'pages': book[2]}
          book_list.append(book_dict)
      return book_list
  
  assert book_list_to_dict([['The Hobbit', 'J.R.R. Tolkien', 295], ['The Catcher in the Rye', 'J.D. Salinger', 223]])==[
    {'title': 'The Hobbit', 'author': 'J.R.R. Tolkien', 'pages': 295},
    {'title': 'The Catcher in the Rye', 'author': 'J.D. Salinger', 'pages': 223},
  ]
output: def book_list_to_dict(book_info_list):
      book_list = []
      for book in book_info_list:
          book_dict = {'title': book[0], 'author': book[1], 'pages': book[2]}
          book_list.append(book_dict)
      return book_list