xxxxxxxxxx
# Correct string literal
message = "Hello, world!"
# Incorrect string literal, missing closing quote
message = "Hello, world!
# Incorrect string literal, mixed quotes
message = "Hello, world!'
xxxxxxxxxx
def getName():
print("My name is Chandler Bing)
getName()
# Output
File "c:\Projects\Tryouts\listindexerror.py", line 2
return "My name is Chandler Bing
^
SyntaxError: EOL while scanning string literal