when I ask for the solution it skips ahead to the next part of the lesson but it does not show me what the correct code should look like, so I don’t learn what I’m doing wrong or how to correct it.
I seem to be stuck on step 3.
step 1. asked to rename my function to mult_x_add_y
step 2. asked me to add x and y to the parameters
step 3. says "Inside the function, replace 2
in the print statement with x
, and replace 3
in the print statement with y
" but when I do this I get this syntax error message:
File “script.py”, line 3
mult_x_add_y(number:5, x:2, y:3)
^
SyntaxError: invalid syntax
and the instructions on the bottom read: You did not replace the 2
with x
and the 3
with y
this is what my code like:
def mult_x_add_y(number, x, y):
print(number * x + y)
mult_x_add_y(number:5, x:2, y:3)
here is a link to exercise I am having trouble with.
Thanks a bunch