In python, use this class: Class Movie: def__init__(self, name, director, actor): self._name = name self._director = director self._actor = actor return def __str__(self): return('\n' + 'Name:' + str(self._name) + '\n' + 'Director:' + str(self._director) + '\n' + 'Actor:' + str(self._actor) +'\n') With this class you should create under main, a list called moviestore that takes in all of the inputs. The inputs will be a specific order, as the class is in so you do not need to worry about the order. Example of input: Harry Potter Chris Columbus Daniel Radcliffe Hunger Games Gary Ross Jennifer Lawrence The moviestore should take in any amount of movies and should print as this: Name: Harry Potter Director: Chris Columbus Actor: Daniel Radcliffe Name: Hunger Games Director: Gary Ross Actor: Jennifer Lawrence
In python, use this class:
Class Movie:
def__init__(self, name, director, actor):
self._name = name
self._director = director
self._actor = actor
return
def __str__(self):
return('\n' + 'Name:' + str(self._name) + '\n' + 'Director:' + str(self._director) + '\n' + 'Actor:' + str(self._actor) +'\n')
With this class you should create under main, a list called moviestore that takes in all of the inputs. The inputs will be a specific order, as the class is in so you do not need to worry about the order. Example of input:
Harry Potter
Chris Columbus
Daniel Radcliffe
Hunger Games
Gary Ross
Jennifer Lawrence
The moviestore should take in any amount of movies and should print as this:
Name: Harry Potter
Director: Chris Columbus
Actor: Daniel Radcliffe
Name: Hunger Games
Director: Gary Ross
Actor: Jennifer Lawrence

Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 1 images









