Write the Director class with the required methods to give the following outputs as shown.
Write the Director class with the required methods to give the following outputs as shown. # Write your codes here. # Do not change the following lines of code. a1 = Director() print("=================================") a1.add_movie('Raising Arizona', 'Comedy-Crime', 29.2) print("=================================") a1.set_director_name('Joel Coen') a1.add_movie('Raising Arizona', 'Comedy-Crime', 29.2) a1.print_details() print("=================================") a1.add_movie('The Big Lebowski', 'Comedy-Crime', 46.7) a1.add_movie('True Grit', 'Western-Drama', 252.2) a1.print_details() print("=================================") a2 = Director('Marc Forster') a2.add_movie('Machine Gun Preacher', 'Action', 3.3) a2.add_movie('Quantum of Solace', 'Action', 589.6) a2.print_details() print("=================================") OUTPUT: ================================= Please add a director name first ================================= Number of Movie(s): 1 Director Name: Joel Coen Comedy-Crime: Raising Arizona ================================= Number of Movie(s): 3 Director Name: Joel Coen Comedy-Crime: Raising Arizona, The Big Lebowski Western-Drama: True Grit ================================= Number of Movie(s): 2 Director Name: Marc Forster Action: Machine Gun Preacher, Quantum of Solace =================================
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 4 images