DEV Community

Discussion on: How does python handles " in a string when \ is not provided?

Collapse
 
aadibajpai profile image
Aadi Bajpai

In this example, the strings get concatenated. Also, you don't necessarily need \ to escape ". You could also do s = 'Google," facebook' and the " would be printed normally.