What will be the output in the console after the following c…

What will be the output in the console after the following code is executed? The user enters a 75 and 1 at the first two prompts.  def main(): try: total = int(input(‘Enter total cost of items:’))        num_items = int(input(‘Enter number of items:’))        average = total / num_items except Exception as err: print(‘The code encounter an error’) else: print(‘The code does not encounter an error’)main()

What will be the output when the following code is executed?…

What will be the output when the following code is executed? This question evaluates your comprehension of inheritance. (Please be careful with the calculation.) class Student: def __init__(self): self.major = ‘business’ self.average = 90 def curve_grade(self): return self.average + 2 class MIS304Student(Student): def __init__(self): super().__init__() self.average = 95 def curve_grade(self): return self.average + 5general_student = Student()mis_student = MIS304Student()print(general_student.curve_grade(), mis_student.curve_grade())