input: Write a function named `create_book_dict` that takes a list of books as input, where each book is a list containing the title, author, and number of pages. The function should return a list of dictionaries, where each dictionary contains the keys 'title', 'author', and 'pages' with their respective values from the input list. If the input list is empty, the function should return an empty list.
  
  assert create_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 create_book_dict([])==[]
output: def create_book_dict(books):
      return [{'title': book[0], 'author': book[1], 'pages': book[2]} for book in books]