Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started