input: Write a function to store a list of books in a dictionary. Each book should include title, author, and number of pages. The function should take a list of lists as input, where each inner list contains the title, author, and number of pages of a book. The function should return a list of dictionaries with the details of each book.
  assert book_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},
  ]
  assert book_dict([['1984', 'George Orwell', 328]]) == [
    {'title': '1984', 'author': 'George Orwell', 'pages': 328},
  ]
  assert book_dict([]) == []
output: def book_dict(books):
      return [{'title': book[0], 'author': book[1], 'pages': book[2]} for book in books]