Escape quotes in a dialogue
The string below is not recognized by Python due to unescaped single and double quotes. Use escape characters to correctly display the dialogue.
# adjust the following line...
message = 'John said, "I can't believe it! It's finally happening!"'
print(message)
# expected: John said, "I can't believe it! It's finally happening!"
Python
Setting up Python environment...
Output