Can we also use " qoutes and ' qoutes inserted on the two words which have to add???? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can we also use " qoutes and ' qoutes inserted on the two words which have to add????

9th Oct 2020, 3:46 PM
priyanka
priyanka - avatar
7 Answers
+ 2
Yes. Use escape charecters like \" or \' " string\' " =>equal to or prints like : string's Also in python, specifically To Include double quote add between single quotes and vise versa.. Like " string's " =>string's ' "strings" '=>"strings"
9th Oct 2020, 3:48 PM
Jayakrishna 🇮🇳
+ 2
Jan Markus , also: 'string\'s'
9th Oct 2020, 3:54 PM
Shadoff
Shadoff - avatar
+ 1
priyanka In other languages c/c++/java need escape charecters.. But in python there is alternative for that is single quotes in double quotes and using double quotes in single quotes. But this is not work in other languages.. So escape charecters are also you can use.. See this "string\'s" is same as "string's". No error in python but error in other languages... (eacape usage is correct one in other languages) [ i did not see python tag first so added escape charecter example first ]. escape charecter is essential when you want to insert a double quote in double quote or a single quote in single quotes.. Ex: 'string\'s' : here you must use \ "string\"s " : here also.. Hope this example clears it..
9th Oct 2020, 4:11 PM
Jayakrishna 🇮🇳
+ 1
that, this, then, there, thus, they
9th Oct 2020, 4:12 PM
Shadoff
Shadoff - avatar
0
Yes. I updated examples, after i seen python tag.. Just Checked before it.. So actually escape charecter not need in python.. May be need in regex only..
9th Oct 2020, 4:04 PM
Jayakrishna 🇮🇳
0
but here in this ,they given that to use escape character ??
9th Oct 2020, 4:06 PM
priyanka
priyanka - avatar
0
tq
9th Oct 2020, 4:14 PM
priyanka
priyanka - avatar