0

How can i create a string containing a double quote

string

26th Apr 2017, 9:37 PM
jones
2 Answers
+ 9
string = " \" " you need to use the escape character \
26th Apr 2017, 9:39 PM
Edward
+ 6
Or enclose it in a single quote pair: string = ' " ' You can even use multilined triple quotes one: string = ''' " ''' string = """ " """ # just avoid to have the quote enclosed at last string position, as parser will lost it :P
27th Apr 2017, 4:01 AM
visph
visph - avatar