0
Can we also use " qoutes and ' qoutes inserted on the two words which have to add????
7 odpowiedzi
+ 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"
+ 2
Jan Markus , also:
'string\'s'
+ 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..
+ 1
that, this, then, there, thus, they
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..
0
but here in this ,they given that to use escape character ??
0
tq