Question: python D Question 4 1 pts What is wrong with the following program: def honk(x, y, z=1); S = x+y+z+k returns k-2 a, b -
D Question 4 1 pts What is wrong with the following program: def honk(x, y, z=1); S = x+y+z+k returns k-2 a, b - honk(3, 4) The function requires 3 arguments, but we only pass 2 arguments when we call the function with "honk(3.4) D The function uses the variable "k" but this variable is undefined inside the function o We can fix this program by replacing "honkix, 2=1" with "honk{x,y)" We try to assign the return value of the function to two variables (a and b) but the function only returns one object (s)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
