input: Write a python function to create a movie object and print its details.
  assert create_and_print_movie("Inception", 2010, 8.8) == "The movie Inception released in 2010 had a rating of 8.8."
  assert create_and_print_movie("The Matrix", 1999, 8.7) == "The movie The Matrix released in 1999 had a rating of 8.7."
  assert create_and_print_movie("Interstellar", 2014, 8.6) == "The movie Interstellar released in 2014 had a rating of 8.6."
output: def create_and_print_movie(title, year, rating):
      movie = {
          "title": title,
          "year": year,
          "rating": rating
      }
      return f"The movie {movie['title']} released in {movie['year']} had a rating of {movie['rating']}."