How to form a double quoted string? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to form a double quoted string?

When you're given->>>"__"

12th Feb 2017, 4:04 AM
Ravi Pandit
Ravi Pandit - avatar
4 Answers
+ 2
Umm... Just put double quote symbols and your string inbetween them, like so: "Hello World" If you want a string that itself contains double quote characters, you can border the string with single quotes so double quotes count as a part of it: 'What is "Python"?' Or you can escape them with a backslash: "What is \"Python\"?" The last two are just the same.
12th Feb 2017, 6:36 AM
DotJason
+ 2
"\" " done....
12th Feb 2017, 6:48 AM
Vivek M
Vivek M - avatar
0
The easiest and the simplest is to use triple quotes. That is """your text""" or ''' your text'''. If you want double quotes in the string use the '''your text'''' notation. And if you want single quote in your string use """your text""" notation. In this case use '''your text''' notation. So, you can use ''' "__" ''' to display "_"
22nd Feb 2017, 4:40 AM
Dimhat
0
42
28th Feb 2017, 3:00 PM
Niceclashbug
Niceclashbug - avatar