How to create a string containing double quote | Sololearn: Learn to code for FREE!
+ 1

How to create a string containing double quote

10th Feb 2018, 7:13 AM
Akshit Kumar
Akshit Kumar - avatar
2 Answers
+ 2
Escaping the double quote: "use the \"quote\" " Or using the single for the string: 'use the "quote" ' Both have te same result: use the "quote"
10th Feb 2018, 7:24 AM
Leonardo Medai Cossutta
Leonardo Medai Cossutta - avatar
+ 1
print(' "abc" ') print(" 'abc' ")
10th Feb 2018, 4:04 PM
ƒred
ƒred - avatar