I Can't seem to figure out what to do with this error

Cell #3. Can’t compile the student’s code. Error: SyntaxError(‘invalid syntax’, (‘/tmp/student_solution_cells/cell_3.py’, 6, 15, ‘Before starting on any task, it is useful to get more familiar with your dataset. \n’))
I don’t know what to do in this case as I have tried everything anyone willing to help??

Have you perhaps accidentally modified the cell type in the notebook. If a cell that is Markdown is switched to Code, then the grader is going to try to interpret it as Python code.

Did you run all the previous cell from the beginning? especially load the dataset cell??

I have done that but still the error exists

Haven’t tried it yet will try that

Hi Anas,

Ok try running cells from beginning one by one and you will find a cell with load the dataset under the dataset heading, make sure you have run down that cell till the cell you are getting error. If you are still getting error, please share screenshot of your error.

Regards
DP

When I’m Submitting the assignment for grading I’m only getting one error and that is
Cell #3. Can’t compile the student’s code. Error: SyntaxError(‘invalid syntax’, (‘/tmp/student_solution_cells/cell_3.py’, 6, 15, ‘Before starting on any task, it is useful to get more familiar with your dataset. \n’)).
My code is correct But I’m not able to get the exact output

If you get that error when submitting the notebook for grading, then there’s a problem with the notebook settings for the 3rd cell.

Select that cell, go to the Cell menu, and check the Cell Type. Set it to “Markdown”.

1 Like

I have tried both Markdown and code still the error is there

Check your private messages for instructions.

Did you manually Save the notebook after you set it to Markdown?

To summarize:

It appears the Cell attribute for the cell that contains the text “View the variables” was set to “Code” instead of “Markdown”.