input: Write a function to determine if it is possible to create a Movie class in Python that includes attributes for the movie's name, year of release, genre, and rating. The function should then create an instance of this class and print the attributes for a given movie. If the given input is valid, return True; otherwise, return False.
  
  
  class Movie:
      def __init__(self, name, release_year, genre, rating):
          self.name = name
          self.release_year = release_year
          self.genre = genre
          self.rating = rating
  
  def create_movie(name, release_year, genre, rating):
      try:
          movie = Movie(name, release_year, genre, rating)
          print(movie.name, movie.release_year, movie.genre, movie.rating)
          return True
      except:
          return False
  
  assert create_movie("Interstellar", 2014, "Sci-Fi", 8.4) == True
  assert create_movie("Inception", 2010, "Action", "8.8") == True
  assert create_movie("The Godfather", "1972", "Crime", 9.2) == True
  assert create_movie("Titanic", 1997, "Drama", "7.8") == True
  assert create_movie("Avatar", 2009, 7, 7.8) == False
  
output: def create_movie(name, release_year, genre, rating):
      try:
          movie = Movie(name, release_year, genre, rating)
          print(movie.name, movie.release_year, movie.genre, movie.rating)
          return True
      except:
          return False