Home > Software engineering >  SyntaxError: EOL while scanning string literal 1
SyntaxError: EOL while scanning string literal 1

Time:12-24

enter image description hereWhat do I need to do to make this code work? The brackets seems to be in the right place

CodePudding user response:

This is happening probably because you've copied some part of code from web, or have by mistake used '`' special character instead of "'"(single quote)
This error is present in 3 lines because of special character:

Line 6 (after relu word)
Line 7 (after relu word)
Line 9 (around softmax).

CodePudding user response:

activation=`relu'

In this you have used this ` symbol to start it and you have ended it using ' - single quotes. It starts treating the line after the single quotes as string. So, this error has occured

CodePudding user response:

I think, problem with symbols. ’ is not '

  • Related