python eol

Solutions on MaxInterview for python eol by the best coders in the world

showing results for - "python eol"
Riley
20 May 2018
1# If you are facing eol while scanning string literal to resolve add the missing quotes and use the format specifier properly.
2
3# Example of EOL Error
4def getName():
5    print("My name is Chandler Bing)
6getName()
7
8# Output
9  File "c:\Projects\Tryouts\listindexerror.py", line 2
10    return "My name is Chandler Bing
11                                    ^
12SyntaxError: EOL while scanning string literal
13
14# Solution to EOL Error
15def getName():
16    print("My name is Chandler Bing")
17getName()
18
19# Output
20My name is Chandler Bing
21
Stanislas
17 May 2020
1frferf
queries leading to this page
python eolwill python 2 7 diepython eol