What will be the result of the following code snippet?
def power(x, n=2):
return x ** n
result = power(3)
print(result)
Answer: B
The function power calculates the square of the given argument x by default, and in this case, it squares 3, resulting in 9.
Discuss About this Question.