Question: Python Programming Complete the attached MovieIO.py file, TODO statements included. Reading from attached .txt file, sample output is below: class Movie): def init-(self, title=, year=0):


Python Programming
Complete the attached MovieIO.py file, TODO statements included. Reading from attached .txt file, sample output is below:
class Movie): def init-(self, title="", year=0): self. title -title self._yearyear # TODO: Set attributes based on line # Create an Exception if it is not in the appropriate format: def parseLine (self, line): -separated2 elements, and the second is a number) pass def st (self) return (self. title +"("+str (self. year)+")" def main 0: # TODO: # Write a main method that reads in the MovieDataErr file line by line (must se the parselineO function you write # It should handle the error raised by parseline, by print a message about the line not being parseable and continue on. # Display a menu of all the valid Movies (Must be flexible if I were to change the file used) - allow the user to choose a single file to output as a pickle - (MUST use numbers for choice
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts

