Which of the following Function Headers in a Python code will result in error?
Show answerHide answer
Correct answer: (A) def Compu (X = 100, Y = 10, Z):
Explanation
A parameter without a default value cannot follow parameters that have default values. def Compu(X=100, Y=10, Z): raises a SyntaxError.