0
How can i create a string containing a double quote
string
2 odpowiedzi
+ 9
string = " \" "
you need to use the escape character \
+ 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