Step-by-step explanation:
If we call the function with mystery(1), the value of a is assigned as 1 while the default values of b and c are used. Therefore, the output will be:
2 * a + b + 3 * c
= 2 * 1 + 1 + 3 * 3
= 2 + 1 + 9
= 12
If we call the function with mystery(), all the parameters will take their default values as given in the function definition. Therefore, the output will be:
2 * a + b + 3 * c
= 2 * 2 + 1 + 3 * 3
= 4 + 1 + 9
= 14