+ 1
How to create a string containing double quote?
string
3 Respostas
+ 4
alternatively my favourite way:
print("""This"string"has"double"quotes'and' single'ones""")
+ 2
Although above answers are enought but just to know, alternatively, you can also use escape sequence.
print("\"Hello\" world")
>>>"Hello" world
+ 1
Use single quotes at each end of the string.
print(‘This”string”has”double”quotes’)