The following snippet:
def func(a, b): return a ** a print(func(2))
- will return None
- will output 4
- will output 2
- is erroneous
Explanation: The code snippet is erroneous because the function is invoked with one argument, but two are needed, since both parameters don’t have a predefined value.
More Questions: Python Essentials 1 – Module 4 Test
Please login or Register to submit your answer