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