What does a string containing a double quote look like? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What does a string containing a double quote look like?

18th Mar 2017, 1:45 PM
Nikeal Patel
Nikeal Patel - avatar
5 Answers
+ 9
With Python: str1 = "this is a \"string\" example" str2 = 'this is a "string" example' str3 = '''this is a "string" example''' str4 = """this is a "string" example""" ... the two last are the 'triple quote' notation, mainly use for docstring purposes, but is a valid string literal notation, allowing multi-lines: str5 = """this is another example... ... showing multi-lines possibility"""
18th Mar 2017, 5:32 PM
visph
visph - avatar
+ 2
String ABC="The Best is \"SoloLearn\"";
18th Mar 2017, 1:52 PM
Yasiru Nayanajith
Yasiru Nayanajith - avatar
+ 2
Every language has its own way to show special characters. Usually, it's called "escape characters", in case you wanna search for it.
18th Mar 2017, 2:02 PM
rarray
rarray - avatar
0
大家好像都没理解楼主的意思?
22nd Mar 2017, 11:47 PM
milo
- 3
" "
18th Mar 2017, 5:58 PM
Nikeal Patel
Nikeal Patel - avatar