Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MovieData:
- def __init__(self, movie_name, year, director, time, country, movie_type, actors):
- self.movie = movie_name
- self.year = year
- self.director = director
- self.time = time
- self.country = country
- self.type = movie_type
- self.actors = actors
- class Manager:
- def __init__(self):
- self.array = []
- def add_movie(self, movie: MovieData):
- self.array.append(movie)
- def remove_movie(self, movie: MovieData):
- if movie in self.array:
- self.array.remove(movie)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement