Create a class called MovList that’s a subclass of the Pytho…
Create a class called MovList that’s a subclass of the Python built-in list class. MovList only contains lists (sublists) with three attributes that represent a movie that won the Best Picture Oscar for a given year. The first attribute is the year the movie won and is type integer. The second is the movie title, type string. The third is the movie’s category, also a string. For example: is a valid list representing a movie. When creating MovList assume sublists can only be added via the append method. That’s the only difference between MovList and normal lists. Ensure the input to append is a type list with exactly three elements. Also validate that the year is between 1927 and 2025, inclusive, and that the category is in this tuple: (‘comedy’, ‘drama’, ‘historical, ‘western’). If the input to be added fails any of those checks return False and a short string stating the reason for the failure. Otherwise, append the sublist, keeping the list in year order, then return True and ‘added’.