Question: Part (c) (2 MARKS] Consider the following module: from typing import List def f3(1st: List[int]) > float: n-0 total - 0 for item in lst:
![Part (c) (2 MARKS] Consider the following module: from typing import](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f5017f0717c_73466f5017e9b43e.jpg)
Part (c) (2 MARKS] Consider the following module: from typing import List def f3(1st: List[int]) > float: n-0 total - 0 for item in lst: if item % 2 - 0: total + item n+ 1 return total / n def f2(1st: List[int]) -> float: return f3(1st) def f1(1st: List[int]) -> float: try: return f2(1st) except ZeroDivisionError: print('Ouch!) return 0.0 if __name__ - '__main__': print(f1([3, 21, 85, 11, 7])) 1. How many stack frames are on the call stack, including the frame for __main.., when an error is raised? 2. When the error is raised, how many stack frames are popped off the stack before "Ouch!" is printed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
