Python Programming Principles and Practice

ICT582 Python Programming Principles and Practice Q3. Consider the following program (an example of continuous menu) D=[‘Sara’, 3.40, 04235′, ‘IT’] def runMenu(): choice=1 while not choice=0: print(“Please enter your choices:”) print(“1- to print your Name”) print(“2- to print your GPA”) print(“3- to print your Contact”) print(“4- to print your major”) print(“0-to Exit”) choice=int(input) print(D[choice-1]) runMenu() Questions: a. List all the errors might happen due to some unexpected inputs b. Fix them using exception handling concept