code05N001, step2 - starting on the first or 2nd line gives syntax error

Task 6 and task 14. when starting the function on line 1 or line 2, it gives a syntax error