Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

escape character in python

#You will get an error if you use double quotes inside a string 
#that is surrounded by double quotes:

txt = "We are the so-called "Vikings" from the north."

#To fix this problem, use the escape character ":
txt = "We are the so-called "Vikings" from the north."

#Output: We are the so-called "Vikings" from the north.
 
PREVIOUS NEXT
Tagged: #escape #character #python
ADD COMMENT
Topic
Name
4+3 =