codea04N001 - Step 3. gets syntax error when i dont include tom= Turtle()

The question says not to start a function on the first line,
but when I start it on the 2nd line it gives a syntax error.

if I start the function in the first line I get an error as well

I have to include tom=turtle() in the first line

this is fixed @Yash