+ 2

what is an EOL while scanning string literal syntax error mean?

28th Sep 2017, 11:48 PM
Caleb
11 Respostas
+ 6
@Joy If this questions answers do not answer your query. Please create a new question and provide as much detail as possible. Here is a document that may assist: https://www.sololearn.com/Blog/38/8-simple-rules-to-get-help-from-the-community
23rd Feb 2018, 12:28 PM
jay
jay - avatar
+ 3
pls i got an eol error on this line i dont know what is wrong print('mynet.py -t 192.168.0.1 -p 5555') can some one help me
23rd Feb 2018, 12:04 PM
Joy Sylver
Joy Sylver - avatar
+ 2
it means u eather forgot to close a ( ) or indentation problems, check ur syntax!
29th Sep 2017, 12:07 AM
jay
+ 2
thank
23rd Feb 2018, 12:31 PM
Joy Sylver
Joy Sylver - avatar
+ 1
End Of Line I guess? It might be because of multiline input handling
29th Sep 2017, 12:00 AM
👑 Prometheus 🇾🇬
👑 Prometheus 🇾🇬 - avatar
+ 1
This
29th Sep 2017, 12:02 AM
Caleb
+ 1
The "EOL while scanning string literal" error is an error that occurs in Python meaning that the line ended (end of line) before a quote was closed (or before some other required syntax was found): https://www.256kilobytes.com/content/show/1506/fix-eol-while-scanning-string-literal
12th Jan 2019, 4:42 AM
August R. Garcia
August R. Garcia - avatar
0
An EOL ( End of Line ) error indicates that the Python interpreter expected a particular character or set of characters to have occurred in a specific line of code, but that those characters were not found before the end of the line . This results in Python stopping the program execution and throwing a syntax error . The SyntaxError: EOL while scanning string literal error in python occurs when while scanning a string of a program the python hit the end of the line due to the following reasons: Missing quotes Strings spanning multiple lines Strings can't normally span multiple lines. If you don't want the string to appear on multiple lines but you want to initialize it on multiple lines (so you can read it more easily), you can "escape" the newline by putting a backslash before the newline. If you want it to appear on multiple lines, you can use triple quotes around the string. http://net-informations.com/python/err/eol.htm
31st Dec 2019, 5:57 AM
rahul kumar
rahul kumar - avatar