Question: In python: Which of the function headers below has a correct syntax? I'm getting EOF parsing errors on most of them and syntax errors on
In python:
Which of the function headers below has a correct syntax? I'm getting EOF parsing errors on most of them and syntax errors on one. I'm not sure what to do.
| A. | def fun(x = 7, y , *z=3 ): | |
| B. | def fun(x = 7, y , z=3 ): | |
| C. | def fun(x = 7, y , *z ): | |
| D. | def fun(x, y= 7 , *z ): |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
