Here's an example of how you can create the File class in Python:
class File:
def __init__(self, movie_name, director_name, actors, year, cost, audience_score, awards):
self.movie_name = movie_name
self.director_name = director_name
self.actors = actors
self.year = year
self.cost = cost
self.audience_score = audience_score
self.awards = awards
def stars(self):
print(f"{self.movie_name} - {self.audience_score} stars")
# Creating an instance of the File class
movie_data = File("Interstellar", "Christopher Nolan", ["Matthew McConaughey", "Anne Hathaway"], 2014, 165_000_000, 4, ["Oscar", "BAFTA"])
# Calling the stars method to print movie name and stars
movie_data.stars()
In this example, the File class has an __init__ method to initialize the attributes (name of the movie, director's name, etc.), and a stars method to print the movie name and audience score. You can create instances of the File class and use its methods to work with movie data.